fix ambigious file open flag - previously it could be interpreted as a read-only access
This commit is contained in:
parent
6f05e1d091
commit
636973af95
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ if __name__ == "__main__":
|
|||
close_open_files()
|
||||
## replace stderr by the webserver logfile
|
||||
os.close(2)
|
||||
os.open(options.logfile, os.O_APPEND)
|
||||
os.open(options.logfile, os.O_WRONLY | os.O_APPEND)
|
||||
## startup went fine - fork is done - now we may write the pid file
|
||||
write_pid_file(options.pidfile)
|
||||
## this will never exit - one of the above exit handlers will get triggered
|
||||
|
|
Loading…
Add table
Reference in a new issue