Index: content/common/process_watcher_mac.cc |
=================================================================== |
--- content/common/process_watcher_mac.cc (revision 107816) |
+++ content/common/process_watcher_mac.cc (working copy) |
@@ -22,7 +22,7 @@ |
void BlockingReap(pid_t child) { |
const pid_t result = HANDLE_EINTR(waitpid(child, NULL, 0)); |
if (result == -1) { |
- PLOG(ERROR) << "waitpid(" << child << ", NULL, 0)"; |
+ DPLOG(ERROR) << "waitpid(" << child << ", NULL, 0)"; |
} |
} |
@@ -77,7 +77,7 @@ |
int kq = HANDLE_EINTR(kqueue()); |
if (kq == -1) { |
- PLOG(ERROR) << "kqueue()"; |
+ DPLOG(ERROR) << "kqueue()"; |
} else { |
file_util::ScopedFD auto_close_kq(&kq); |
@@ -87,7 +87,7 @@ |
if (result == -1) { |
if (errno != ESRCH) { |
- PLOG(ERROR) << "kevent (setup " << child << ")"; |
+ DPLOG(ERROR) << "kevent (setup " << child << ")"; |
} else { |
// At this point, one of the following has occurred: |
// 1. The process has died but has not yet been reaped. |
@@ -129,10 +129,10 @@ |
} |
if (result == -1) { |
- PLOG(ERROR) << "kevent (wait " << child << ")"; |
+ DPLOG(ERROR) << "kevent (wait " << child << ")"; |
} else if (result > 1) { |
- LOG(ERROR) << "kevent (wait " << child << "): unexpected result " |
- << result; |
+ DLOG(ERROR) << "kevent (wait " << child << "): unexpected result " |
+ << result; |
} else if (result == 1) { |
if ((event.fflags & NOTE_EXIT) && |
(event.ident == static_cast<uintptr_t>(child))) { |
@@ -141,9 +141,9 @@ |
BlockingReap(child); |
return; |
} else { |
- LOG(ERROR) << "kevent (wait " << child |
- << "): unexpected event: fflags=" << event.fflags |
- << ", ident=" << event.ident; |
+ DLOG(ERROR) << "kevent (wait " << child |
+ << "): unexpected event: fflags=" << event.fflags |
+ << ", ident=" << event.ident; |
} |
} |
} |
@@ -155,7 +155,7 @@ |
// signal is not delivered to a live process. |
result = kill(child, SIGKILL); |
if (result == -1) { |
- PLOG(ERROR) << "kill(" << child << ", SIGKILL)"; |
+ DPLOG(ERROR) << "kill(" << child << ", SIGKILL)"; |
} else { |
// The child is definitely on the way out now. BlockingReap won't need to |
// wait for long, if at all. |