Commit 04dae325 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Store PID to Config again after daemon()

parent 3e0813d4
......@@ -513,6 +513,9 @@ int event_loop()
LOG(FATAL) << "Failed to daemonize: " << strerror(error);
exit(EXIT_FAILURE);
}
// We get new PID after successful daemon().
mod_config()->pid = getpid();
}
if(get_config()->pid_file) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment