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

Re: Stop signals and interruption of system calls on Linux

To: Manfred Spraul <yyyyyyy@xxxxxxxxxxxxxxxx>
Subject: Re: Stop signals and interruption of system calls on Linux
From: "Michael T Kerrisk" <yyyyyyyyy@xxxxxxx>
Date: Mon, 16 Feb 2004 09:20:03 +0100 (MET)
Cc: Paul Eggert <yyyyyy@xxxxxxxxxxx>, Wojtek Lerch <yyyyyy@xxxxxxx>, yyyyyyyyyyyyyy@xxxxxxxxxxxxx
Hi Manfred,

> 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?

In my reading -- yes.

Cheers,

Michael

-- 
Michael Kerrisk
yyyyyyyyy@xxxxxxx

GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

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