diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-02-16 15:59:11 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-02-16 11:42:47 +0100 |
commit | 1d95b0afc3547a91f8558873ce58652c271ed9eb (patch) | |
tree | 8db84dd7961f6dad7e7063458138613a76a2d6ac /lib/util/wscript_build | |
parent | 88c1eb4ae10a9f69d2e828b4e5543915c1d990c6 (diff) | |
download | samba-1d95b0afc3547a91f8558873ce58652c271ed9eb.tar.gz samba-1d95b0afc3547a91f8558873ce58652c271ed9eb.tar.xz samba-1d95b0afc3547a91f8558873ce58652c271ed9eb.zip |
debug: Set close-on-exec for the main log file FD
This does not change the properties of dup2() of the fd as STDERR, however this is closed
before we start smbd or winbindd as child processes.
This is needed otherwise the logfile remains open in the child process, and
logfile rotation can mean this old log remains on disk indefinatly.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11100
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Feb 16 11:42:47 CET 2015 on sn-devel-104
Diffstat (limited to 'lib/util/wscript_build')
-rwxr-xr-x | lib/util/wscript_build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/wscript_build b/lib/util/wscript_build index a1dec2a093..3121e1ff5b 100755 --- a/lib/util/wscript_build +++ b/lib/util/wscript_build @@ -27,7 +27,7 @@ bld.SAMBA_SUBSYSTEM('close-low-fd', bld.SAMBA_LIBRARY('samba-debug', source='debug.c', - deps='replace time-basic close-low-fd talloc', + deps='replace time-basic close-low-fd talloc socket-blocking', local_include=False, private_library=True) |