On Mon, 23 Oct 2006 17:52:43 +0200 Anthony wrote:
AN> Normally, the daemon re-reads it's configuration files when sent a HUP
AN> signal.  However when using pass_persist, the daemon becomes blocked after
AN> receiving the HUP signal because the daemon calls the waitpid function for
AN> the PID of the pass-through executable (line 771 of
AN> agent/mibgroup/ucd-snmp/pass_persist.c in the close_persist_pipe function).
AN> In the absence of the WNOHANG option, this function blocks until the child
AN> process has changed state.  However, the child process is never informed
AN> that it should terminate.

It is informed, by closing the fd used to communicate with the process.

AN> In my pass-through executable, the process
AN> continually loops until standard input is received (but will terminate when
AN> a TERM signal is received).

You should be getting a SIGPIPE when you select on stdin, since it has been
closed.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to