lkml.org 
[lkml]   [2007]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectDo SIG_DFL handlers have SA_RESTART?
Date
Do the default signal handlers for Linux behave as if they were installed with 
SA_RESTART, or not? (I tried querying 'em with sigaction but the defaults
all have sa_flags 0.)

I remember years ago hitting a bug where ctrl-z followed by fg would cause
pipelined processes to drop data, and would like to avoid that without having
to wrap every darn syscall and check for -EINTR. I _think_ that I just have
to feed SA_RESTART to the signals I register handlers for myself, but I'd
like to confirm that.

Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-01-19 04:13    [W:0.029 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site