From owner-freebsd-bugs Fri Sep 6 12: 7:31 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F01F537B400; Fri, 6 Sep 2002 12:07:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB7243E6A; Fri, 6 Sep 2002 12:07:29 -0700 (PDT) (envelope-from wollman@FreeBSD.org) Received: from freefall.freebsd.org (wollman@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g86J7TJU012468; Fri, 6 Sep 2002 12:07:29 -0700 (PDT) (envelope-from wollman@freefall.freebsd.org) Received: (from wollman@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g86J7SMm012464; Fri, 6 Sep 2002 12:07:28 -0700 (PDT) Date: Fri, 6 Sep 2002 12:07:28 -0700 (PDT) From: Garrett Wollman Message-Id: <200209061907.g86J7SMm012464@freefall.freebsd.org> To: Pierre-Etienne.Moreau@loria.fr, wollman@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: i386/42477: atexit+exit result in infinite recursive calls Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Synopsis: atexit+exit result in infinite recursive calls State-Changed-From-To: open->closed State-Changed-By: wollman State-Changed-When: Fri Sep 6 12:04:39 PDT 2002 State-Changed-Why: I believe that the behavior noted is within the bounds of the relevant standards. Functions registerd with atexit() must call _exit() if they need to prevent further normal exit() processing. (C99 added the _Exit() function for this reason among others, but we do not yet implement it, and even if we did, it would just call _exit().) http://www.freebsd.org/cgi/query-pr.cgi?pr=42477 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message