]> git.proxmox.com Git - mirror_ovs.git/commit - lib/daemon-unix.c
daemon-unix: With --monitor, only close standard fds if --detach also used.
authorBen Pfaff <blp@ovn.org>
Wed, 30 Aug 2017 16:43:11 +0000 (09:43 -0700)
committerBen Pfaff <blp@ovn.org>
Sat, 7 Oct 2017 03:52:24 +0000 (20:52 -0700)
commit44074babd0d7cf7f9864995b7ae940482ac1abd1
tree6b6ea629c8588568261229a4388089669b0dc950
parent45b4b20ab79a585fc8c3a9e45ca6f0b06cbfb1c6
daemon-unix: With --monitor, only close standard fds if --detach also used.

Daemons generally should close the standard fds because they don't want to
hold open an SSH session, etc. that is attached to a tty.  But --monitor
without --detach does not daemonize, so do not close fds in that case.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
lib/daemon-unix.c