This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Simple test case of SIGCHLD hang
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'Chris Faylor'" <cgf at bbc dot com>
- Subject: RE: Simple test case of SIGCHLD hang
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Wed, 18 Jun 1997 08:11:14 +0400
- Encoding: 24 TEXT
Chris Faylor wrote:
>
> sleep(1);
> fputs("sleeping\n", stderr);
> sleep(3);
> sigdelset(&set, SIGCHLD);
> sigsuspend(&set);
> exit(0);
I.e. sigsuspend() must check pending signals not blocked by "set" argument and raise ones if exists? Something like
if(there is pending unblocked signals) {
raise(that signals);
return 0;
}
wait for a new signal forever;
return 0;
Am I right? Does anybody knows the exact sigsuspend() semantics?
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".