[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Windows signal handler and Control-C

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2004-01-16 17:16:21 CET

mark benedetto king wrote:

> On Fri, Jan 16, 2004 at 10:37:04AM -0500, Garrett Rooney wrote:
>
>>It was from me, but I didn't #ifdef it for win32. In fact, I just
>>experimented with signal handlers on the Solaris box I've got in front
>>of me, and it seems like the (reset the signal handler after it fires)
>>also occurs on Solaris, so I'm leaning towards just reseting it
>>everywhere to be absolutely safe.
>>
>
>
> I'm a little concerned about the effects that has on OSen where
> the signal handler *isn't* reset automatically. This could just
> be paranoia on my part, though. Perhaps APR should set SA_RESETHAND
> in its sigaction()-based apr_signal() implementation to remove the
> ambiguity.

What's the worst thing that can happen? It'll just reset the signal
handler to exactly what it was before. No harm, no foul. Sure, it's
not as efficient, but come on, it's not like the signal handler is in
the critical path or something...

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 16 17:16:54 2004

This is an archived mail posted to the Subversion Dev mailing list.