Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 1997 21:58:23 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, phk@critter.freebsd.dk
Cc:        atrens@nortel.ca, freebsd-bugs@FreeBSD.ORG, gram@cdsec.com, grog@lemis.com, hackers@FreeBSD.ORG, peter@spinner.dialix.com.au
Subject:   Re: Bug in malloc/free
Message-ID:  <199709191158.VAA14696@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709191158.VAA14696>