From owner-freebsd-threads@FreeBSD.ORG Thu Apr 27 14:20:10 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A579516A403 for ; Thu, 27 Apr 2006 14:20:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F02E543D48 for ; Thu, 27 Apr 2006 14:20:09 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k3REK9DD054719 for ; Thu, 27 Apr 2006 14:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k3REK9Mk054718; Thu, 27 Apr 2006 14:20:09 GMT (envelope-from gnats) Date: Thu, 27 Apr 2006 14:20:09 GMT Message-Id: <200604271420.k3REK9Mk054718@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: threads/94176: KSE: sigwait doesn't recieve SIGWINCH sent by pthread_kill() or kill -WINCH X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2006 14:20:10 -0000 The following reply was made to PR threads/94176; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@FreeBSD.org, john@kak-sam.to, David Xu 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