[lkml]   [2001]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: A signal fairy tale
--On Wednesday, June 27, 2001 11:18:28 +0200 Jamie Lokier 
<> wrote:
> Btw, this functionality is already available using sigaction(). Just
> search for a signal whose handler is SIG_DFL. If you then block that
> signal before changing, checking the result, and unblocking the signal,
> you can avoid race conditions too. (This is what my programs do).

It's more than whether a signal is blocked or not, unfortunately. Lots of
applications will invoke sigwaitinfo() on whatever the current signal mask
is, which means you can't rely on sigaction to solve your problems. :-(

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:55    [W:0.091 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site