It works. I have replaced fork by system("nohup $cmd >&- 2>&- &");
Regards,
Samuel Mutel.
----- Mail original -----
De: "Samuel Mutel"
=C3=80: [email protected]
Envoy=C3=A9: Vendredi 28 Janvier 2011 15:15:50
Objet: [Nagios-devel] NRPE, fork and defunct process
Hi,
I have a perl plugin executed from NRPE.
This plugin used fork system call to execute a system command in a child pr=
ocess.
The father exit but become a defunct process.
The problem is that NRPE wait the father (defunct process) exit, so wait th=
at the child is finished.
Do someone have a solution ?
Regards,
Samuel Mutel.
---------------------------------------------------------------------------=
---
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free=
!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires=20
February 28th, so secure your free ArcSight Logger TODAY!=20
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Nagios-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]