aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/uzbl-cookie-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'examples/data/scripts/uzbl-cookie-daemon')
-rwxr-xr-xexamples/data/scripts/uzbl-cookie-daemon5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/data/scripts/uzbl-cookie-daemon b/examples/data/scripts/uzbl-cookie-daemon
index fde8b8e..ed88de4 100755
--- a/examples/data/scripts/uzbl-cookie-daemon
+++ b/examples/data/scripts/uzbl-cookie-daemon
@@ -269,8 +269,9 @@ def daemonize():
sys.stderr.write("fork #2 failed")
sys.exit(1)
- sys.stdout.flush()
- sys.stderr.flush()
+ if sys.stdout.isatty():
+ sys.stdout.flush()
+ sys.stderr.flush()
devnull = '/dev/null'
stdin = file(devnull, 'r')