]> arthur.barton.de Git - bup.git/commit
cmd/daemon: FD_CLOEXEC the listener socket and don't leak fd for the connection.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 13 Feb 2011 12:10:08 +0000 (04:10 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 13 Feb 2011 13:02:21 +0000 (05:02 -0800)
commit43a14f4c1a5dd7676642cc43bf50fc094e750554
tree7a68869db3fa4f8a2a91305d30fcfe5a9a6dd7ba
parenta5ef544d3152e3c587a00f809bed1ae8fff29c39
cmd/daemon: FD_CLOEXEC the listener socket and don't leak fd for the connection.

Otherwise the listener gets inherited by all the child processes (mostly
harmless) and subprograms run by bup-server inherit an extra fd for the
connection socket (problematic since we want the connection to close as soon
as bup-server closes).

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