Re: pass-through persist and daemon re-configuration with HUP signal

This is a discussion on Re: pass-through persist and daemon re-configuration with HUP signal within the SNMP Coders forums, part of the Networking and Network Related category; On Mon, 23 Oct 2006 17:52:43 +0200 Anthony wrote: AN> Normally, the daemon re-reads it's ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-26-2006
Robert Story
 
Posts: n/a
Default Re: pass-through persist and daemon re-configuration with HUP signal

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=...057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0