From: crincon@et.com.mx (Cesar Rincon)
To: Glynn Clements <glynn.clements@virgin.net>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: accept() and signals
Date: Wed, 31 Mar 2004 17:54:24 -0600 [thread overview]
Message-ID: <20040331235424.GE24581@et.com.mx> (raw)
In-Reply-To: <16491.17543.318847.34527@cerise.nosuchdomain.co.uk>
Ipsissima verba Glynn Clements:
> The default behaviour of signal() in GNU libc 2.x is the BSD
> behaviour, i.e. interrupted system calls are automatically
> restarted, and the handler isn't reset upon receipt of a signal. If
> you want system calls such as accept() to be interrupted, you should
> use sigaction() without the SA_RESTART flag.
Which works perfectly, thank you very much.
> More generally, the safest approach is to always use sigaction()
> rather than to assume a particular behaviour from signal().
And it says that much in the manual, duh. It's just that I was using
Spanish-translated dev manpages, which are, now I know, ahem, a bit
outdated. E.g., sigaction(2) says that SA_RESETHAND is the default
behaviour of signal()...
Oh, well. Firing up a mail to the translators.
Thanks again.
-CR
--
Ceterum censeo: SCO delenda est.
next prev parent reply other threads:[~2004-03-31 23:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-31 20:59 accept() and signals Cesar Rincon
2004-03-31 22:21 ` Glynn Clements
2004-03-31 23:54 ` Cesar Rincon [this message]
2004-04-01 0:58 ` Glynn Clements
2004-04-01 3:08 ` Cesar Rincon
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=20040331235424.GE24581@et.com.mx \
--to=crincon@et.com.mx \
--cc=glynn.clements@virgin.net \
--cc=linux-c-programming@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.