#341282 bash: EINTR kills redirection

Package:
bash
Source:
bash
Description:
GNU Bourne Again SHell
Submitter:
Date:
2024-06-30 14:06:06 UTC
Severity:
normal
#341282#5
Date:
2005-11-29 20:40:48 UTC
From:
To:
The bug #164134 is still present:

$ [ -p fifo ] || mkfifo fifo
$ sleep 1&
[1] 1607
$ { sleep 2; > fifo; }&
[2] 1608
$ < fifo :
bash: fifo: Interrupted system call
[1]-  Done                    sleep 1
$
$ echo $?
1
$

#341282#10
Date:
2006-08-13 14:12:12 UTC
From:
To:
Looking through existing bug reports for something similar to my
freshly reported problem #382798 (bash builtin echo fails to cope with
signals arriving at the wrong moment), #341282 seems like a related
problem.  It may even have the same root cause.

Ian.

#341282#19
Date:
2024-06-30 14:02:03 UTC
From:
To:
As pointed out in https://bugs.debian.org/332881#10, the root cause of
332881 is the same mishandling of EINTR described in 341282 and 382798.