Set busy state on parent while waiting for horse

main
Javier Lopez 10 years ago
parent 2091c601b1
commit fc5295edfc

@ -435,7 +435,9 @@ class Worker(object):
self.procline('Forked %d at %d' % (child_pid, time.time()))
while True:
try:
self.set_state('busy')
os.waitpid(child_pid, 0)
self.set_state('idle')
break
except OSError as e:
# In case we encountered an OSError due to EINTR (which is

Loading…
Cancel
Save