[Ace-users] ACE Service Configurator

joe joelihn at hotmail.com
Fri Nov 9 00:07:53 CST 2007


Subject: nonblock io
ACE VERSION: 5.5.10
HOST MACHINE and OPERATING SYSTEM:    winxp
COMPILER NAME AND VERSION (AND PATCHLEVEL): g++
THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
FILE :platform_macros.GNU
DESCRIPTION:
APG book,19.5 Reconfiguring Services During Execution:
1. On systems that have POSIX signal capability, send the process a
SIGHUP
signal. For this to work, the program must be executing the Reactor
event
loop. Since this is often the case, the requirement is not usually a
problem.
Note that the signal number to use for this can be changed when the
program
starts by specifying the -s command line option (Table 19.1 on page
425).
2. The program itself can call ACE_Service_Config::reconfigure()
directly. This is the favored option on Windows (since POSIX signals
are not
available) and can also be used for programs that are not running the
Reactor
event loop. To make this more "automatic" on Windows, it's possible to
create
a file/directory change event, register the event handle with the
ACE_WFMO_Reactor, and use the event callback to do the
reconfiguration.

What`s meaning  "create
a file/directory change event" in second method?



More information about the Ace-users mailing list