Browse Source

Merge "python3: Can't have unbuffered non-binary I/O"

tags/3.3.1
Zuul 5 months ago
parent
commit
1b83044ed4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      zuul/ansible/library/zuul_console.py

+ 1
- 1
zuul/ansible/library/zuul_console.py View File

@@ -49,7 +49,7 @@ def daemonize():
49 49
     sys.stderr.flush()
50 50
     i = open('/dev/null', 'r')
51 51
     o = open('/dev/null', 'a+')
52
-    e = open('/dev/null', 'a+', 0)
52
+    e = open('/dev/null', 'ab+', 0)
53 53
     os.dup2(i.fileno(), sys.stdin.fileno())
54 54
     os.dup2(o.fileno(), sys.stdout.fileno())
55 55
     os.dup2(e.fileno(), sys.stderr.fileno())

Loading…
Cancel
Save