dns: make dns update script use unbuffered IO
[ira/wip.git] / source4 / scripting / bin / samba_dnsupdate
index 9eaf3df272fa2ef38577c73a5a8f0540dada6f5e..d8ad20047ead13f05365bc34740640957f51bfbc 100755 (executable)
@@ -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")