Commit bbcfc585 authored by David Wilson's avatar David Wilson

master: add a comment to explain what's going on, and fix log msg.

Closes #70
parent 3cbe9baf
......@@ -109,9 +109,13 @@ def create_child(*args):
os.execvp(args[0], args)
childfp.close()
# Decouple the socket from the lifetime of the Python socket object.
fd = os.dup(parentfp.fileno())
parentfp.close()
LOG.debug('create_child() child %d fd %d, parent %d, cmd: %s',
pid, parentfp.fileno(), os.getpid(), Argv(args))
return pid, os.dup(parentfp.fileno())
pid, fd, os.getpid(), Argv(args))
return pid, fd
def flags(names):
......
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