All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: linux-kernel@vger.kernel.org
Subject: Do SIG_DFL handlers have SA_RESTART?
Date: Thu, 18 Jan 2007 21:17:52 -0500	[thread overview]
Message-ID: <200701182117.52385.rob@landley.net> (raw)

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

                 reply	other threads:[~2007-01-19  2:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200701182117.52385.rob@landley.net \
    --to=rob@landley.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.