Merge "init: fix writepid wrong pid written in file(s)"

am: 718625010d

* commit '718625010d839481cdef5f0305f2622a0aa87cd8':
  init: fix writepid wrong pid written in file(s)
This commit is contained in:
Elliott Hughes 2016-02-05 18:47:15 +00:00 committed by android-build-merger
commit 880200c9bb

View file

@ -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",