From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Naoaki Maeda <maeda.naoaki@jp.fujitsu.com>
Cc: akpm@osdl.org, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Restartable poll(2)
Date: Mon, 17 Jan 2005 12:23:39 +0000 [thread overview]
Message-ID: <1105963410.12709.91.camel@localhost.localdomain> (raw)
In-Reply-To: <20050117.113142.41643336.maeda.naoaki@jp.fujitsu.com>
On Llu, 2005-01-17 at 02:31, Naoaki Maeda wrote:
> Hi,
>
> Does nobody think a system call is interrupted by SIGSTOP is
> strange behaviour?
Not really
> According to the man page, both of poll(2) and select(2) can be
> interrupted by signals, but select(2) interrupted by SIGSTOP is
> automatically restarted, and poll(2) isn't.
Correct - select and poll come from different worlds with different
viewpoints on signal behaviour.
> If it is a specification of Linux, using job control or ptrace()
> isn't safe because it changes the behaviour of target programs.
Programs must always deal with system call -EINTR responses
appropriately.
prev parent reply other threads:[~2005-01-17 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-14 11:52 Naoaki Maeda
2005-01-17 2:31 ` Naoaki Maeda
2005-01-17 12:23 ` Alan Cox [this message]
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=1105963410.12709.91.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maeda.naoaki@jp.fujitsu.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome