Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 14:20:09 GMT
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-threads@FreeBSD.org
Subject:   Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH
Message-ID:  <200604271420.k3REK9Mk054718@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR threads/94176; it has been noted by GNATS.

From: Andriy Gapon <avg@icyb.net.ua>
To: bug-followup@FreeBSD.org, john@kak-sam.to, David Xu <davidxu@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604271420.k3REK9Mk054718>