From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 19 13:52:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17561106566C for ; Fri, 19 Sep 2008 13:52:56 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (math.missouri.edu [128.206.184.200]) by mx1.freebsd.org (Postfix) with ESMTP id C334C8FC0C for ; Fri, 19 Sep 2008 13:52:55 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from [128.206.184.213] (cauchy.math.missouri.edu [128.206.184.213]) by math.missouri.edu (8.13.1/8.13.1) with ESMTP id m8JDqtOV008502; Fri, 19 Sep 2008 08:52:55 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <48D3AE8D.50304@math.missouri.edu> Date: Fri, 19 Sep 2008 08:52:13 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080909 SeaMonkey/1.1.11 MIME-Version: 1.0 To: FreeBSD Stable , freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/8287/Fri Sep 19 03:13:26 2008 on math.missouri.edu X-Virus-Status: Clean Cc: Subject: Calling malloc from a signal handler 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: Fri, 19 Sep 2008 13:52:56 -0000 I notice that if you use "malloc" from within a signal handler on FreeBSD-6.x, that you can potentially trigger a "recursive call" error. But this seems to have changed in FreeBSD-7.x. Is it now permissible to call "malloc" from within a signal handler in FreeBSD-7.x? If so, should the man page of "sigaction(2)" be upgraded to say this? Thanks, Stephen