Merge "init: fix writepid wrong pid written in file(s)" am: 718625010d
am: 880200c9bb
* commit '880200c9bbf8b283b0f6351c1c052bc00d69697d':
init: fix writepid wrong pid written in file(s)
This commit is contained in:
commit
be49484810
|
@ -416,7 +416,7 @@ bool Service::Start(const std::vector<std::string>& dynamic_args) {
|
|||
}
|
||||
}
|
||||
|
||||
std::string pid_str = StringPrintf("%d", pid);
|
||||
std::string pid_str = StringPrintf("%d", getpid());
|
||||
for (const auto& file : writepid_files_) {
|
||||
if (!WriteStringToFile(pid_str, file)) {
|
||||
ERROR("couldn't write %s to %s: %s\n",
|
||||
|
|
Loading…
Reference in New Issue