- close stdout and stderr and reopen then as /dev/null when running as
authorAndrew Tridgell <tridge@samba.org>
Sun, 19 Jul 1998 04:50:48 +0000 (04:50 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 19 Jul 1998 04:50:48 +0000 (04:50 +0000)
commitb11ed3b1504d526a4b571bc3d80f4e5f1628dc75
tree4e55b9107a7d26d6c3d43d3181090595a69af171
parent42245f1b56a3e7647762db300430470c302191e8
- close stdout and stderr and reopen then as /dev/null when running as
a daemon. This prevents library functions (such as getopt) stuffing up
our protocol stream when errors are detected.

- defer the error message from the options parsing until after the
socket is multiplexed. This allows clients sending new options which
the remote server doesn't understand to get a sensible error message.
main.c
options.c
socket.c