From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 25 18:46:32 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4257816A41F for ; Wed, 25 Jan 2006 18:46:32 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A4D243D45 for ; Wed, 25 Jan 2006 18:46:31 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.17.229]) ([10.251.17.229]) by a50.ironport.com with ESMTP; 25 Jan 2006 10:46:31 -0800 Message-ID: <43D7C786.1090803@elischer.org> Date: Wed, 25 Jan 2006 10:46:30 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jose Marcio Martins da Cruz References: <43D74F91.2090009@ensmp.fr> In-Reply-To: <43D74F91.2090009@ensmp.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Changes from 5.2.1 to 5.3 (theads / signal handling) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 18:46:32 -0000 Jose Marcio Martins da Cruz wrote: >Hello, > >I have a problem with an application I wrote. > >It works fine under Solaris, Linux, and FreeBSD till release 5.2.1. > >Under FreeBSD 5.3 and newers I have problems. > >The application is constituted by two processes : a supervisor and modules. The >supervisor forks and become a module when it shall launch one. > >The supervisor is a single loop and it has a thread to handle signals. Each >module is a multithreaded server, with its own thread to handle signals. > >Under FreeBSD 5.3 and newers, when the supervisor forks to become a module, it >receives a SIGABRT and exits immediately when it launches the signal handler thread. > >I solved this by replacing the signal handling of the father : using a handler >defined with sigaction instead of using a thread. But I'd like to understanding >what's wrong with this and what changed from FreeBSD 5.2.1 to 5.3 > > a new threading library. have you tried 6.0? also, does the child do an exec() after forking? >Thanks > >Jose-Marcio >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >