fix ambigious file open flag - previously it could be interpreted as a read-only access

This commit is contained in:
lars 2008-01-15 01:59:00 +00:00
parent 6f05e1d091
commit 636973af95
1 changed files with 1 additions and 1 deletions

View File

@ -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