Commit 347ad0c7 authored by 's avatar

- added potential entry point

parent d4b45764
...@@ -322,8 +322,7 @@ def _ignoreSIGCHLD(*unused): ...@@ -322,8 +322,7 @@ def _ignoreSIGCHLD(*unused):
try: os.waitpid(-1, os.WNOHANG) try: os.waitpid(-1, os.WNOHANG)
except OSError: break except OSError: break
def run():
if __name__ == "__main__":
# we don't care to be notified of our childrens' exit statuses. # we don't care to be notified of our childrens' exit statuses.
# this prevents zombie processes from cluttering up the process # this prevents zombie processes from cluttering up the process
# table when zopectl start/stop is used interactively. # table when zopectl start/stop is used interactively.
...@@ -347,3 +346,6 @@ if __name__ == "__main__": ...@@ -347,3 +346,6 @@ if __name__ == "__main__":
signal.signal(signal.SIGCHLD, _ignoreSIGCHLD) signal.signal(signal.SIGCHLD, _ignoreSIGCHLD)
exitstatus = main() exitstatus = main()
sys.exit(exitstatus) sys.exit(exitstatus)
if __name__ == '__main__':
run()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment