Ignore a single EINTR when installing command line tools on OS X

This commit is contained in:
Kovid Goyal 2010-12-11 08:57:16 -07:00
parent d5e8da9ba4
commit cba2a4d776

View File

@ -75,7 +75,10 @@ def do_it(scripts, links):
if ph: if ph:
del os.environ['PYTHONHOME'] del os.environ['PYTHONHOME']
pipe = auth.executeWithPrivileges(name) pipe = auth.executeWithPrivileges(name)
sys.stdout.write(pipe.read()) try:
sys.stdout.write(pipe.read())
except:
sys.stdout.write(pipe.read()) # Probably EINTR
pipe.close() pipe.close()
except: except:
r1, r2 = None, traceback.format_exc() r1, r2 = None, traceback.format_exc()