Date: Mon, 19 Jul 1999 11:46:20 -0400 (EDT) From: Alfred Perlstein <bright@rush.net> To: Dag-Erling Smorgrav <des@flood.ping.uio.no> Cc: hackers@FreeBSD.ORG Subject: Re: Determining the return address Message-ID: <Pine.BSF.3.96.990719114321.27774A-100000@cygnus.rush.net> In-Reply-To: <xzppv1pm62v.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On 19 Jul 1999, Dag-Erling Smorgrav wrote: > Alfred Perlstein <bright@rush.net> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990719114321.27774A-100000>