diff options
| -rwxr-xr-x | bitbake/bin/bitbake-server | 6 |
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": | |||
| 38 | with open('/dev/null', 'r') as si: | 38 | with open('/dev/null', 'r') as si: |
| 39 | os.dup2(si.fileno(), sys.stdin.fileno()) | 39 | os.dup2(si.fileno(), sys.stdin.fileno()) |
| 40 | 40 | ||
| 41 | so = open(logfile, 'a+') | 41 | with open(logfile, 'a+') as so: |
| 42 | os.dup2(so.fileno(), sys.stdout.fileno()) | 42 | os.dup2(so.fileno(), sys.stdout.fileno()) |
| 43 | os.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 |
