From c67ccad74dd4d3b4d8bfd1f1e65e00fa8e508252 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 27 Nov 2014 22:41:14 +0900 Subject: [PATCH] nghttpx: Use cached get_config()->pid in save_pid() --- src/shrpx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 88fe7984..d5bcc6bf 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -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 "