Re: [gtk-list] Q: wait for child, process its return value
- From: Rahul Sood <rsood panix com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Q: wait for child, process its return value
- Date: Sun, 19 Jul 1998 19:03:28 -0400 (EDT)
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]