threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH

Andriy Gapon avg at icyb.net.ua
Thu Apr 27 14:20:10 UTC 2006


The following reply was made to PR threads/94176; it has been noted by GNATS.

From: Andriy Gapon <avg at icyb.net.ua>
To: bug-followup at FreeBSD.org, john at kak-sam.to, David Xu <davidxu at FreeBSD.org>
Cc:  
Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by
 pthread_kill() or kill -WINCH
Date: Thu, 27 Apr 2006 17:12:27 +0300

 David, John,
 
 maybe it would be beneficial to the general programmer public to add
 something similar to the NOTES section of the following man page to our
 man page for sigwait:
 http://condor.wesleyan.edu/cgi-bin/man.cgi?section=2&topic=sigwait
 
 Using the original example, it would mean adding something like the
 following code to get the desired behavior:
 
 void dummy_handler(int signum)
 {
         return;
 }
 
 void *thread(void* unused) {
   struct sigaction sa;
   sa.sa_handler = dummy_handler;
   sigemptyset(&sa.sa_mask);
   sa.sa_flags = 0;
   sigaction(SIGWINCH, &sa, NULL);
 .
 .
 .
 
 
 -- 
 Andriy Gapon


More information about the freebsd-threads mailing list