Subject: Re: Sane exit from a program on receipt of a signal
To: Luke Mewburn <lukem@NetBSD.org>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 09/24/2007 11:32:11
On Sep 24, 1:34pm, lukem@NetBSD.org (Luke Mewburn) wrote:
-- Subject: Re: Sane exit from a program on receipt of a signal
| On Wed, Jul 25, 2007 at 10:36:39AM -0400, Christos Zoulas wrote:
| | I think that it is pretty simple to cleanup so why trash the signal
| | disposition and mask state? And if you are going to block signals,
| | why not block all of them with sigfillset(), instead of blocking
| | just that one? Then you can unblock only the signal you want
| | delivered.
| How's this?
Looks good to me. I would only cast the result of memset() to (void)
to shut-up lint.