LKML Archive on
help / color / mirror / Atom feed
* Do SIG_DFL handlers have SA_RESTART?
@ 2007-01-19  2:17 Rob Landley
  0 siblings, 0 replies; only message in thread
From: Rob Landley @ 2007-01-19  2:17 UTC (permalink / raw)
  To: linux-kernel

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.

"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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-19  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-19  2:17 Do SIG_DFL handlers have SA_RESTART? Rob Landley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).