]> arthur.barton.de Git - bup.git/commit
cmd/daemon: close file descriptors correctly in parent process.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 13 Feb 2011 10:29:59 +0000 (02:29 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 13 Feb 2011 13:02:21 +0000 (05:02 -0800)
commita5ef544d3152e3c587a00f809bed1ae8fff29c39
treed025b30c59422a56ea80e4368ed658162e9096c1
parent753978ebb009566b5cdd8922a611ae8d4d2f921a
cmd/daemon: close file descriptors correctly in parent process.

The client wasn't getting disconnected when the server died, because the
daemon was still hanging on to its copy of the original socket, due to some
misplaced os.dup() calls.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/daemon-cmd.py