diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-14 17:55:15 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-14 17:55:15 +0300 |
commit | 0c6c288b5360fcdb7f9b5826d05c01ade33253f0 (patch) | |
tree | 8b832b1dcefb12487c699b2444a57469be752ec2 /tests/remfiles01.at | |
parent | 87240ee7c477ae4960cf81d3c38691ae93ceaee8 (diff) | |
download | tar-0c6c288b5360fcdb7f9b5826d05c01ade33253f0.tar.gz |
Minor changes.
* src/tar.c (main): Ignore SIGPIPE.
* src/system.c (sys_child_open_for_compress)
(sys_child_open_for_uncompress): Reset SIGPIPE
in child to default.
* tests/remfiles01.at: Avoid race conditions.
* tests/remfiles02.at: Likewise.
Diffstat (limited to 'tests/remfiles01.at')
-rw-r--r-- | tests/remfiles01.at | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/remfiles01.at b/tests/remfiles01.at index 8a668a7d..940fd953 100644 --- a/tests/remfiles01.at +++ b/tests/remfiles01.at @@ -40,11 +40,20 @@ chmod 0 a genfile --file b mkdir c -tar -c -f a -z --remove-files b c +# Depending on when the SIGPIPE gets delivered, the invocation below +# may finish with either +# tar: a: Cannot write: Broken pipe +# or +# tar: Child returned status 2 +tar -c -f a -z --remove-files b c 2>err +EC=$? +sed -n '/(child)/p' err >&2 +rm err find . | sort +exit $EC ], -[0], +[2], [. ./a ./b |