From owner-freebsd-questions@FreeBSD.ORG Fri May 9 12:58:30 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E3D937B401 for ; Fri, 9 May 2003 12:58:30 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AFA143FA3 for ; Fri, 9 May 2003 12:58:29 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h49JwScB015812; Fri, 9 May 2003 14:58:28 -0500 (CDT) (envelope-from dan) Date: Fri, 9 May 2003 14:58:28 -0500 From: Dan Nelson To: misha Message-ID: <20030509195827.GB94321@dan.emsphone.com> References: <3EBBF029.9EE9031B@research.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EBBF029.9EE9031B@research.att.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-questions@freebsd.org Subject: Re: signal usage in Pthread X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2003 19:58:30 -0000 In the last episode (May 09), misha said: > I am trying to port a multithreaded application from Linux to > FreeBSD; the application uses SIGUNUSED signal (because Linux threads > utilize SIGUSR1 and 2 for themselves). I am considering replacing > SIGUNUSED with SIGUSR1 but am concerned if FreeBSD threads aren't > using them also. > > Does anyone know if either user-level threads ( gcc -Pthread) or > kernel threads (gcc -kthread) use SIGUSR1 in a way that would > preclude using it in the application? libc_r (-pthread) uses SIGPROF for its scheduling signal, so you should be safe. There hasn't been a -kthread option for a long time. -- Dan Nelson dnelson@allantgroup.com