Re: [gtk-list] Q: wait for child, process its return value



fork a process that forks sendmail and waitpid's on it. block SIGCLD in
this process that runs sendmail and unblock it in the calling process.
return the status from waitpid to the calling process. This way you get
the status without handling SIGCLD.

-R. Sood
rsood@panix.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]