From owner-freebsd-hackers Fri Sep 19 05:01:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id FAA06710 for hackers-outgoing; Fri, 19 Sep 1997 05:01:54 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA06705; Fri, 19 Sep 1997 05:01:49 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id VAA14696; Fri, 19 Sep 1997 21:58:23 +1000 Date: Fri, 19 Sep 1997 21:58:23 +1000 From: Bruce Evans Message-Id: <199709191158.VAA14696@godzilla.zeta.org.au> To: bde@zeta.org.au, phk@critter.freebsd.dk Subject: Re: Bug in malloc/free Cc: atrens@nortel.ca, freebsd-bugs@FreeBSD.ORG, gram@cdsec.com, grog@lemis.com, hackers@FreeBSD.ORG, peter@spinner.dialix.com.au Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>There is no way to calculate only a few bits per call since there is no >>way to keep track of state. > >Wrong. A signal handler can have a private static variable. > >:-) Wrong :-). Such a variable would have static storage duration, so the usual restrictions apply - the behaviour is undefined if the variable is accessed, unless it has type volatile sig_atomic_t and the access is an assignment. Bruce