nghttpx: Store PID to Config again after daemon()
This commit is contained in:
parent
3e0813d407
commit
04dae32509
|
@ -513,6 +513,9 @@ int event_loop()
|
||||||
LOG(FATAL) << "Failed to daemonize: " << strerror(error);
|
LOG(FATAL) << "Failed to daemonize: " << strerror(error);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We get new PID after successful daemon().
|
||||||
|
mod_config()->pid = getpid();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(get_config()->pid_file) {
|
if(get_config()->pid_file) {
|
||||||
|
|
Loading…
Reference in New Issue