From: Leandro Lucarella Date: Mon, 12 Nov 2007 23:51:31 +0000 (-0300) Subject: Replace time.sleep() for signal.pause() in the ProcessManager test. X-Git-Url: https://git.llucax.com/software/pymin.git/commitdiff_plain/5d9d4a8e207fa5b2621f60e74eb80a46504bc855?ds=inline Replace time.sleep() for signal.pause() in the ProcessManager test. --- diff --git a/pymin/procman.py b/pymin/procman.py index e0f3017..810481d 100644 --- a/pymin/procman.py +++ b/pymin/procman.py @@ -176,8 +176,9 @@ if __name__ == '__main__': procman.call('test', ('sleep', '5'), notify) procman.start('test-service') + print "Esperando...", [pi.name for pi in procman.namemap.values()] while procman.pidmap: - time.sleep(1) + signal.pause() if sig == signal.SIGCHLD: sig = None procman.sigchild_handler(sig)