This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Simple test case of SIGCHLD hang


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".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]