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() _______________________________________________ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins