From 671ebdb53db316829ef585519f1323cf43e3c125 Mon Sep 17 00:00:00 2001 From: Rick Lin Date: Fri, 21 Nov 2014 09:29:41 +0800 Subject: Remove confusing comment in daemonize() of example/cgishell.cgi --- examples/cgishell.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/cgishell.cgi b/examples/cgishell.cgi index b807a8b..23bef5f 100755 --- a/examples/cgishell.cgi +++ b/examples/cgishell.cgi @@ -176,11 +176,11 @@ def daemonize (stdin=None, stdout=None, stderr=None, daemon_pid_filename=None): if stderr is None: stderr = DEVNULL try: - pid = os.fork() + pid = os.fork() # fork first child except OSError as e: raise Exception("%s [%d]" % (e.strerror, e.errno)) - if pid != 0: # The first child. + if pid != 0: os.waitpid(pid,0) if daemon_pid_filename is not None: daemon_pid = int(file(daemon_pid_filename,'r').read()) -- cgit v1.2.1