From 497f97fc85d7f5fa2a2989373fde34e2cfbde3dc Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Mon, 24 Jan 2011 12:05:36 +0100 Subject: [PATCH] - use EPIPE (as suggested by mls) --- osc/babysitter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osc/babysitter.py b/osc/babysitter.py index 97fd6200..9b87c876 100644 --- a/osc/babysitter.py +++ b/osc/babysitter.py @@ -6,6 +6,7 @@ import os.path import sys import signal +import errno from osc import oscerr from urllib2 import URLError, HTTPError from oscsslexcp import NoSecureSSLError @@ -128,7 +129,7 @@ def run(prg): except IOError, e: # ignore broken pipe - if e.errno != 32: + if e.errno != errno.EPIPE: raise return 1