From 5d9d4a8e207fa5b2621f60e74eb80a46504bc855 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 12 Nov 2007 20:51:31 -0300 Subject: [PATCH] Replace time.sleep() for signal.pause() in the ProcessManager test. --- pymin/procman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.43.0