From cba2a4d77665bfeb52e5b7cdfe4c75ff78616a35 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 11 Dec 2010 08:57:16 -0700 Subject: [PATCH] Ignore a single EINTR when installing command line tools on OS X --- src/calibre/utils/osx_symlinks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/osx_symlinks.py b/src/calibre/utils/osx_symlinks.py index 63863cb810..ef2d39dea9 100644 --- a/src/calibre/utils/osx_symlinks.py +++ b/src/calibre/utils/osx_symlinks.py @@ -75,7 +75,10 @@ def do_it(scripts, links): if ph: del os.environ['PYTHONHOME'] 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() except: r1, r2 = None, traceback.format_exc()