Bug #309001 - Use signal(signal.SIGPIPE, signal.SIG_DFL) for quiet killing of
authorZac Medico <zmedico@gentoo.org>
Sat, 13 Mar 2010 02:18:05 +0000 (02:18 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 13 Mar 2010 02:18:05 +0000 (02:18 -0000)
subprocesses by SIGPIPE (as emerge has for a long time). Thanks to Harald van
Dijk truedfx@g.o for this patch.

svn path=/main/trunk/; revision=15823

bin/ebuild

index d8eec06a76262c85cb9e0b0c2383d54368b9e500..f2625cc93acf63254428efc56736c50e8024ac73 100755 (executable)
@@ -17,6 +17,7 @@ try:
 
        signal.signal(signal.SIGINT, exithandler)
        signal.signal(signal.SIGTERM, exithandler)
+       signal.signal(signal.SIGPIPE, signal.SIG_DFL)
 
 except KeyboardInterrupt:
        sys.exit(1)