Browse Source

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

master
lars 14 years ago
parent
commit
636973af95
  1. 2
      bin/CryptoBoxWebserver

2
bin/CryptoBoxWebserver

@ -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…
Cancel
Save