commit | 718625010d839481cdef5f0305f2622a0aa87cd8 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Feb 05 18:41:52 2016 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Feb 05 18:41:52 2016 +0000 |
tree | dc136b093f99e2da6d241caee234fb6e17d2e465 | |
parent | ead369bdf03e7b0f065dcf115f609e41c634429a [diff] | |
parent | b702b46f688bc3ba7f8dc2d35c6eb25482366c4c [diff] |
Merge "init: fix writepid wrong pid written in file(s)"
diff --git a/init/service.cpp b/init/service.cpp index 0ddc484..bdecc32 100644 --- a/init/service.cpp +++ b/init/service.cpp
@@ -416,7 +416,7 @@ } } - 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",