diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-20 19:30:59 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-20 19:30:59 +0000 |
commit | 32cd530b9d6dbcfc7fe37ab7fd03e7db55868778 (patch) | |
tree | e78b25a69cf62bc923cbf36b3cbe8ed62b4c3032 /chrome | |
parent | b69061aa0b55e959c1c740c660e9837a892cefcb (diff) | |
download | chromium_src-32cd530b9d6dbcfc7fe37ab7fd03e7db55868778.zip chromium_src-32cd530b9d6dbcfc7fe37ab7fd03e7db55868778.tar.gz chromium_src-32cd530b9d6dbcfc7fe37ab7fd03e7db55868778.tar.bz2 |
posix: use PLOG to print useful error messages
Rather than printing errno, this macro prints useful error messages.
Review URL: http://codereview.chromium.org/420006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32642 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/process_watcher_posix.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/common/process_watcher_posix.cc b/chrome/common/process_watcher_posix.cc index cc68335..afe6fe55 100644 --- a/chrome/common/process_watcher_posix.cc +++ b/chrome/common/process_watcher_posix.cc @@ -17,6 +17,7 @@ static bool IsChildDead(pid_t child) { const pid_t result = HANDLE_EINTR(waitpid(child, NULL, WNOHANG)); if (result == -1) { + PLOG(ERROR) << "waitpid(" << child << ")"; NOTREACHED(); } else if (result > 0) { // The child has died. |