sleep so it doesn't go haywire
authorPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 13 Oct 2014 17:18:15 +0000 (13:18 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Mon, 13 Oct 2014 17:18:15 +0000 (13:18 -0400)
crunch_scripts/run-command

index 2af422fbd5a615d83e61e8072388b16fd86ae2df..609572eac38ec23790bbb6e7b8bce9ac5b43f1c4 100755 (executable)
@@ -316,7 +316,9 @@ try:
             if e.errno == errno.ECHILD:
                 # child already exited
                 print "got ECHILD"
-                pass
+                time.sleep(1)
+                for s in subprocesses:
+                    print s.poll()
             else:
                 raise
         active = sum([1 if s.poll() is None else 0 for s in subprocesses])