nghttpx: Use cached get_config()->pid in save_pid()
This commit is contained in:
parent
5d59adc52b
commit
c67ccad74d
|
@ -309,7 +309,7 @@ namespace {
|
||||||
void save_pid()
|
void save_pid()
|
||||||
{
|
{
|
||||||
std::ofstream out(get_config()->pid_file.get(), std::ios::binary);
|
std::ofstream out(get_config()->pid_file.get(), std::ios::binary);
|
||||||
out << getpid() << "\n";
|
out << get_config()->pid << "\n";
|
||||||
out.close();
|
out.close();
|
||||||
if(!out) {
|
if(!out) {
|
||||||
LOG(ERROR) << "Could not save PID to file "
|
LOG(ERROR) << "Could not save PID to file "
|
||||||
|
|
Loading…
Reference in New Issue