summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-03 14:28:42 +1100
committerAndrew Tridgell <tridge@samba.org>2010-03-03 23:05:23 +1100
commitd8ae32ec4183b121b207fbfb84d4be726f0cdb8f (patch)
treee653abeab8ff530d9ea3eec79d211dd703b82fc9 /source4/scripting/bin
parent8fe783edaf79bcae5c55c9eb5159104537ccf930 (diff)
downloadsamba-d8ae32ec4183b121b207fbfb84d4be726f0cdb8f.tar.gz
samba-d8ae32ec4183b121b207fbfb84d4be726f0cdb8f.tar.bz2
samba-d8ae32ec4183b121b207fbfb84d4be726f0cdb8f.zip
dns: make dns update script use unbuffered IO
Otherwise we can lose debug output when a timeout happens
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index 9eaf3df272..d8ad20047e 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -24,6 +24,10 @@ import sys
import dns.resolver
import tempfile
+# ensure we get messages out immediately, so they get in the samba logs,
+# and don't get swallowed by a timeout
+os.putenv('PYTHONUNBUFFERED', '1')
+
# Find right directory when running from source tree
sys.path.insert(0, "bin/python")