mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-23 07:50:02 +00:00
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()
|
||||
{
|
||||
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 "
|
||||
|
Loading…
Reference in New Issue
Block a user