From 67407afb7cbf5a4e7f73c52562465245dd65d69b Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Fri, 30 Oct 2009 20:02:43 +0000 Subject: 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 --- chrome/common/process_watcher_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/common') 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; -- cgit v1.1