Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7e9bf2 commit 904de5bCopy full SHA for 904de5b
1 file changed
Lib/distutils/spawn.py
@@ -144,7 +144,14 @@ def _spawn_posix (cmd,
144
# Loop until the child either exits or is terminated by a signal
145
# (ie. keep waiting if it's merely stopped)
146
while 1:
147
- (pid, status) = os.waitpid(pid, 0)
+ try:
148
+ (pid, status) = os.waitpid(pid, 0)
149
+ except OSError, exc:
150
+ import errno
151
+ if exc.errno == errno.EINTR:
152
+ continue
153
+ raise DistutilsExecError, \
154
+ "command '%s' failed: %s" % (cmd[0], exc[-1])
155
if os.WIFSIGNALED(status):
156
raise DistutilsExecError, \
157
"command '%s' terminated by signal %d" % \
0 commit comments