commit | 67c808a8a3318561a100778eaef01df65bba0a15 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Sat Jun 05 19:29:23 2010 +1000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Sat Jun 05 19:29:23 2010 +1000 |
tree | b3ecb78c7e9017cbf7a33bbfe3b0dcf58c600cdb | |
parent | 7d7c3fa7ed8fa57d45d1bd734b0889903dc1e26d [diff] |
[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>