From: Andrew Tridgell Date: Wed, 3 Mar 2010 03:28:42 +0000 (+1100) Subject: dns: make dns update script use unbuffered IO X-Git-Tag: samba-3.6.0pre1~4818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ae32ec4183b121b207fbfb84d4be726f0cdb8f;p=thirdparty%2Fsamba.git dns: make dns update script use unbuffered IO Otherwise we can lose debug output when a timeout happens --- diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index 9eaf3df272f..d8ad20047ea 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")