help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] run-parts, trap INT, read error


From: Chet Ramey
Subject: Re: [Help-bash] run-parts, trap INT, read error
Date: Wed, 25 Mar 2015 10:14:46 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 3/24/15 8:09 PM, Eduardo A. Bustamante López wrote:
>> $ ./test.d/child: line 7: read: read error: 0: Input/output error
>> ++ true 'answer: '
>> + true END
> 
>> Where is the read error coming from?
> Well, the message is pretty clear, the error is in the 'read', in child.

In general, this happens because the process group is orphaned or because
the child is run without a controlling terminal.  If I had to guess, I'd
say run-parts is exiting due to the SIGINT, orphaning the process group
and causing subsequent reads to return -1/EIO.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]