diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-02 19:32:56 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-03-04 10:14:34 +0100 |
commit | b07d504ca4e476d492beb5552344070e4f96464a (patch) | |
tree | ef1bebdd28e09a6ac8acc88a3abf8d518d23161c /lib/util/samba_util.h | |
parent | 679bbd014e03f60cddbcabfe0c6b5b8bae9fea4c (diff) | |
download | samba-b07d504ca4e476d492beb5552344070e4f96464a.tar.gz samba-b07d504ca4e476d492beb5552344070e4f96464a.tar.bz2 samba-b07d504ca4e476d492beb5552344070e4f96464a.zip |
change low FDs are handled in Samba
We now only close fds 0, 1, 2 when we are a forked daemon, and take
care not to close a file descriptor that we might need for foreground
stdin monitoring.
This should fix stdout logging in the lsa and epmapper deamons (ie in
make test).
Andrew Bartlett
Diffstat (limited to 'lib/util/samba_util.h')
-rw-r--r-- | lib/util/samba_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index a0989d5479..13fe831995 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -824,7 +824,7 @@ _PUBLIC_ int idr_remove(struct idr_context *idp, int id); /** Close the low 3 fd's and open dev/null in their place **/ -_PUBLIC_ void close_low_fds(bool stderr_too); +_PUBLIC_ void close_low_fds(bool stdin_too, bool stdout_too, bool stderr_too); /** Become a daemon, discarding the controlling terminal. |