[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] I: tar-1.23 SIGPIPE regression
From: |
Sergey Poznyakoff |
Subject: |
Re: [Bug-tar] I: tar-1.23 SIGPIPE regression |
Date: |
Sat, 20 Mar 2010 11:33:49 +0200 |
Dmitry V. Levin <address@hidden> ha escrit:
> Now an innocent code like "tar -tf $file |grep -q $pattern" produces
> misleading error output, and the only way to avoid it is to suppress
> tar's stderr completely. :(
Yes, you are definitely right. Thanks for pointing that out. Please
apply the attached patch.
Regards,
Sergey
diff --git a/src/tar.c b/src/tar.c
index e3fdf7b..b127963 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -2570,8 +2570,6 @@ main (int argc, char **argv)
obstack_init (&argv_stk);
- /* Ensure default behavior for some signals */
- signal (SIGPIPE, SIG_IGN);
/* System V fork+wait does not work if SIGCHLD is ignored. */
signal (SIGCHLD, SIG_DFL);