diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 20:02:43 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 20:02:43 +0000 |
commit | 67407afb7cbf5a4e7f73c52562465245dd65d69b (patch) | |
tree | c3e1b4b89911d84e08c4829285106fc96ef3dd1a /chrome/common/process_watcher_posix.cc | |
parent | 5cc4bc0dd4df78d41504088a6e3502ac376db3d9 (diff) | |
download | chromium_src-67407afb7cbf5a4e7f73c52562465245dd65d69b.zip chromium_src-67407afb7cbf5a4e7f73c52562465245dd65d69b.tar.gz chromium_src-67407afb7cbf5a4e7f73c52562465245dd65d69b.tar.bz2 |
Use HANDLE_EINTR when calling waitpid.
BUG=arthropod
TEST=none
Review URL: http://codereview.chromium.org/340046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/process_watcher_posix.cc')
-rw-r--r-- | chrome/common/process_watcher_posix.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/process_watcher_posix.cc b/chrome/common/process_watcher_posix.cc index 8f09101..cc68335 100644 --- a/chrome/common/process_watcher_posix.cc +++ b/chrome/common/process_watcher_posix.cc @@ -43,7 +43,7 @@ class BackgroundReaper : public PlatformThread::Delegate { void WaitForChildToDie() { // Wait forever case. if (timeout_ == 0) { - pid_t r = waitpid(child_, NULL, 0); + pid_t r = HANDLE_EINTR(waitpid(child_, NULL, 0)); if (r != child_) { LOG(ERROR) << "While waiting for " << child_ << " to terminate, we got the following result: " << r; |