On Thu, 23 Sep 2004 09:42:20 +0800 Jim wrote:
JS>    It makes sense to me now. Just one more question to fully clarify this
JS>    matter. From the description from man page. I have feeling that I have
JS>    to set the value of pid to "0" - which means to wait for any child
JS>    process whose process group ID is equal to that of  the  calling 
JS>    process. Meaning my program only wait for the specific child processes
JS>    forked by the parent process. Of course I should take out the "WNOHANG".

That is one way to do it, assuming you are only forking off one child at a
time. The other way would be to use the exact pid of the child process.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to