[Checkins] SVN: z3c.recipe.ldap/trunk/z3c/recipe/ldap/ctl.py Duh!
Just wait for the subprocess.
Ross Patterson
me at rpatterson.net
Tue Dec 11 13:34:32 EST 2007
Log message for revision 82256:
Duh! Just wait for the subprocess.
Changed:
U z3c.recipe.ldap/trunk/z3c/recipe/ldap/ctl.py
-=-
Modified: z3c.recipe.ldap/trunk/z3c/recipe/ldap/ctl.py
===================================================================
--- z3c.recipe.ldap/trunk/z3c/recipe/ldap/ctl.py 2007-12-11 18:00:44 UTC (rev 82255)
+++ z3c.recipe.ldap/trunk/z3c/recipe/ldap/ctl.py 2007-12-11 18:34:32 UTC (rev 82256)
@@ -7,9 +7,7 @@
if 'urls' in options:
args.extend(['-h', options['urls']])
args.extend(sys.argv[2:])
- subprocess.Popen(args)
- while not os.path.exists(options['pidfile']):
- pass
+ subprocess.Popen(args).wait()
elif command.lower() == 'stop':
pidfile = file(options['pidfile'])
pid = int(pidfile.read())
More information about the Checkins
mailing list