Fork again...

Andreas Ericsson ae at op5.se
Wed Feb 2 18:23:08 CET 2005


Oscar Paniagua wrote:
> I need to make the next question:
> - For what in check.c you make two fork's:
> 
> /* fork a child process */
> 	pid=fork();
> 
> /* fork again... */
> 		pid=fork(); 
> 

So as to not create zombie processes in case something goes wrong with 
plugin execution. Otherwise an uninterruptable IO request could quite 
possibly hang the entire daemon.

> Thanks
> 
> =====
> Best Regards/Saludos,
> Oscar Martin Paniagua
> 
> 
> 	
> 
> 	
> 		
> ___________________________________________________________ 
> 250MB gratis, Antivirus y Antispam 
> Correo Yahoo!, el mejor correo web del mundo 
> http://correo.yahoo.com.ar
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl




More information about the Developers mailing list