fix ambigious file open flag - previously it could be interpreted as a read-only access
This commit is contained in:
parent
6f05e1d091
commit
636973af95
|
@ -393,7 +393,7 @@ if __name__ == "__main__":
|
||||||
close_open_files()
|
close_open_files()
|
||||||
## replace stderr by the webserver logfile
|
## replace stderr by the webserver logfile
|
||||||
os.close(2)
|
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
|
## startup went fine - fork is done - now we may write the pid file
|
||||||
write_pid_file(options.pidfile)
|
write_pid_file(options.pidfile)
|
||||||
## this will never exit - one of the above exit handlers will get triggered
|
## this will never exit - one of the above exit handlers will get triggered
|
||||||
|
|
Loading…
Reference in New Issue