nghttpx: Use cached get_config()->pid in save_pid()

This commit is contained in:
Tatsuhiro Tsujikawa 2014-11-27 22:41:14 +09:00
parent 5d59adc52b
commit c67ccad74d

View File

@ -309,7 +309,7 @@ namespace {
void save_pid()
{
std::ofstream out(get_config()->pid_file.get(), std::ios::binary);
out << getpid() << "\n";
out << get_config()->pid << "\n";
out.close();
if(!out) {
LOG(ERROR) << "Could not save PID to file "