Email List: Xaustin-group-lX
[All Lists]

Re: Stop signals and interruption of system calls on Linux

To: Paul Eggert <yyyyyy@xxxxxxxxxxx>
Subject: Re: Stop signals and interruption of system calls on Linux
From: Manfred Spraul <yyyyyyy@xxxxxxxxxxxxxxxx>
Date: Sun, 15 Feb 2004 11:08:17 +0100
Cc: Michael T Kerrisk <yyyyyyyyy@xxxxxxx>, Wojtek Lerch <yyyyyy@xxxxxxx>, yyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <13797.1076756239@www47.gmx.net> <7woes12b2j.fsf@sic.twinsun.com>
Hi David,

Quoting your old comp.std.unix posting:

However, see subclause 3.3.1.4, which describes the effects of signals
on other functions, and contains:

If the action of the signal is to invoke a signal-catching
function, ... the original function is said to be *interrupted* by
the signal.

This, and other wording in 3.3.1.4 makes it clear, I think, that the
bit about EINTR in the description of read() does not apply to job
control signals that were not caught.

Does that mean that signals that are not delivered to user space should never cause a syscall to return with -1, errno=EINTR?

--
Manfred

<Prev in Thread] Current Thread [Next in Thread>