Ignore SIGPIPE signals in order to prevent '[Errno 32] Broken pipe' exceptions from...
authorZac Medico <zmedico@gentoo.org>
Mon, 26 Jun 2006 19:31:26 +0000 (19:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 26 Jun 2006 19:31:26 +0000 (19:31 -0000)
svn path=/main/trunk/; revision=3668

bin/emerge

index 0739986f59e04515e3986e7d9dbe0444fd95631b..f881858cae3800c86da464395a3bcf61dd6a57ca 100755 (executable)
@@ -15,6 +15,7 @@ try:
        
        signal.signal(signal.SIGINT, exithandler)
        signal.signal(signal.SIGTERM, exithandler)
+       signal.signal(signal.SIGPIPE, signal.SIG_DFL)
 
 except KeyboardInterrupt:
        sys.exit(1)