diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2004-02-24 08:19:54 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2004-02-24 08:19:54 +0000 |
commit | 1efbe2254e0f2716aa30240bb0c5cab6b41fe2bf (patch) | |
tree | 4ce1d3966b275ad57ffb8efbea18c5267c0abdd6 /lang/python23/files/patch-Lib::distutils::spawn.py | |
parent | 4ceb33798116be3887f9bcb776449aa054824060 (diff) |
Notes
Diffstat (limited to 'lang/python23/files/patch-Lib::distutils::spawn.py')
-rw-r--r-- | lang/python23/files/patch-Lib::distutils::spawn.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/python23/files/patch-Lib::distutils::spawn.py b/lang/python23/files/patch-Lib::distutils::spawn.py new file mode 100644 index 000000000000..208b10fc1083 --- /dev/null +++ b/lang/python23/files/patch-Lib::distutils::spawn.py @@ -0,0 +1,17 @@ +--- Lib/distutils/spawn.py.orig Tue Feb 24 16:55:44 2004 ++++ Lib/distutils/spawn.py Tue Feb 24 16:56:01 2004 +@@ -144,7 +144,13 @@ + # Loop until the child either exits or is terminated by a signal + # (ie. keep waiting if it's merely stopped) + while 1: +- (pid, status) = os.waitpid(pid, 0) ++ try: ++ (pid, status) = os.waitpid(pid, 0) ++ except OSError, exc: ++ import errno ++ if exc.errno == errno.EINTR: ++ continue ++ raise exc + if os.WIFSIGNALED(status): + raise DistutilsExecError, \ + "command '%s' terminated by signal %d" % \ |