summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbitbake/bin/bitbake-server6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/bin/bitbake-server b/bitbake/bin/bitbake-server
index 454a3919aa..e367ec2c12 100755
--- a/bitbake/bin/bitbake-server
+++ b/bitbake/bin/bitbake-server
@@ -38,9 +38,9 @@ if xmlrpcinterface[0] == "None":
38with open('/dev/null', 'r') as si: 38with open('/dev/null', 'r') as si:
39 os.dup2(si.fileno(), sys.stdin.fileno()) 39 os.dup2(si.fileno(), sys.stdin.fileno())
40 40
41so = open(logfile, 'a+') 41with open(logfile, 'a+') as so:
42os.dup2(so.fileno(), sys.stdout.fileno()) 42 os.dup2(so.fileno(), sys.stdout.fileno())
43os.dup2(so.fileno(), sys.stderr.fileno()) 43 os.dup2(so.fileno(), sys.stderr.fileno())
44 44
45# Have stdout and stderr be the same so log output matches chronologically 45# Have stdout and stderr be the same so log output matches chronologically
46# and there aren't two seperate buffers 46# and there aren't two seperate buffers