summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-11-26 23:09:23 +0000
committerGerrit Code Review <review@openstack.org>2018-11-26 23:09:23 +0000
commit1b83044ed4de01205ed54c1712da70f927fbb7c8 (patch)
treec55e61bfb2eb4ecfd7223219ccb0c3797a88d80e
parent04fe1101c71012d336150ef86cd6c574bb726134 (diff)
parent675f10d2712a49a62cd8a172585578e57ada817a (diff)
Merge "python3: Can't have unbuffered non-binary I/O"
-rw-r--r--zuul/ansible/library/zuul_console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/zuul/ansible/library/zuul_console.py b/zuul/ansible/library/zuul_console.py
index 86a42ce..d119c52 100644
--- a/zuul/ansible/library/zuul_console.py
+++ b/zuul/ansible/library/zuul_console.py
@@ -49,7 +49,7 @@ def daemonize():
49 sys.stderr.flush() 49 sys.stderr.flush()
50 i = open('/dev/null', 'r') 50 i = open('/dev/null', 'r')
51 o = open('/dev/null', 'a+') 51 o = open('/dev/null', 'a+')
52 e = open('/dev/null', 'a+', 0) 52 e = open('/dev/null', 'ab+', 0)
53 os.dup2(i.fileno(), sys.stdin.fileno()) 53 os.dup2(i.fileno(), sys.stdin.fileno())
54 os.dup2(o.fileno(), sys.stdout.fileno()) 54 os.dup2(o.fileno(), sys.stdout.fileno())
55 os.dup2(e.fileno(), sys.stderr.fileno()) 55 os.dup2(e.fileno(), sys.stderr.fileno())