On 19 Jul 1999, Dag-Erling Smorgrav wrote:
> Alfred Perlstein <[EMAIL PROTECTED]> writes:
> > On 18 Jul 1999, Dag-Erling Smorgrav wrote:
> > > Hmm, I ended up using a global variable which I increment at the
> > > beginning of the signal handler, and decrement at the end.
> > As long as you make sure the code won't have multiple access
> > that would work.
>
> Signal handlers having multiple accesses? When did you last see that
> happen?
erm, can't you point multiple signal handler entries to the same
routine? can't you also make it so that signals aren't defered
or blocked while another handler is executing so you may actually
re-enter the handler before it's complete.
specifically how you say you increment it, then decrement it,
if you have multiple handlers where one can interupt another
you can have the counter get jumbled.
-Alfred
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message