[Zope-Checkins] SVN: Zope/trunk/src/Zope2/Startup/zopectl.py - added potential entry point
Yvo Schubbe
y.2009 at wcm-solutions.de
Sun Jul 19 06:32:22 EDT 2009
Log message for revision 102009:
- added potential entry point
Changed:
U Zope/trunk/src/Zope2/Startup/zopectl.py
-=-
Modified: Zope/trunk/src/Zope2/Startup/zopectl.py
===================================================================
--- Zope/trunk/src/Zope2/Startup/zopectl.py 2009-07-19 10:31:22 UTC (rev 102008)
+++ Zope/trunk/src/Zope2/Startup/zopectl.py 2009-07-19 10:32:21 UTC (rev 102009)
@@ -322,8 +322,7 @@
try: os.waitpid(-1, os.WNOHANG)
except OSError: break
-
-if __name__ == "__main__":
+def run():
# we don't care to be notified of our childrens' exit statuses.
# this prevents zombie processes from cluttering up the process
# table when zopectl start/stop is used interactively.
@@ -347,3 +346,6 @@
signal.signal(signal.SIGCHLD, _ignoreSIGCHLD)
exitstatus = main()
sys.exit(exitstatus)
+
+if __name__ == '__main__':
+ run()
More information about the Zope-Checkins
mailing list