summary refs log tree commit diff
path: root/src/mkinit.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2010-05-29 09:44:53 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2010-05-29 09:44:53 +1000
commit0cda2e1f8d8222fa497f808b54a2146d60e304f5 (patch)
tree39fcfeb0ab93422c63141e8fcf5bd305a32fe7a6 /src/mkinit.c
parent[JOBS] Fix wait regression where it does not wait for all jobs (diff)
downloaddash-0cda2e1f8d8222fa497f808b54a2146d60e304f5.tar.gz
dash-0cda2e1f8d8222fa497f808b54a2146d60e304f5.zip
[BUILTIN] Continue after EINTR in read(1) with no pending signals
The recent introduction of SIGCHLD trapping broke read(1) as
each SIGCHLD may cause read(1) to return prematurely.  Now if
we did have a trap for SIGCHLD read(1) should actually do this.
However, returning when SIGCHLD isn't trapped is wrong.

This patch fixes this by checking for EINTR and pendingsigs in
read(1).

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'src/mkinit.c')
0 files changed, 0 insertions, 0 deletions
>2019-01-12Restore cash builtin man page datesJune McEnroe 2019-01-12Use local libeditJune McEnroe 2019-01-12Replace libedit MakefileJune McEnroe 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe