You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2017/05/30 20:25:31 UTC
mesos git commit: Fixed an incorrect gethostname() error message.
Repository: mesos
Updated Branches:
refs/heads/master 12b80ee43 -> 26496483d
Fixed an incorrect gethostname() error message.
On failure, gethostname() sets errno, not h_errno, so use the PLOG macro
to automatically add the failure reason.
Review: https://reviews.apache.org/r/59341/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/26496483
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/26496483
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/26496483
Branch: refs/heads/master
Commit: 26496483d14af7e7c31609391e20974dc4b65301
Parents: 12b80ee
Author: James Peach <jp...@apache.org>
Authored: Tue May 30 13:25:11 2017 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Tue May 30 13:25:11 2017 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/process.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/26496483/3rdparty/libprocess/src/process.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/process.cpp b/3rdparty/libprocess/src/process.cpp
index 96ce7db..efe75a7 100644
--- a/3rdparty/libprocess/src/process.cpp
+++ b/3rdparty/libprocess/src/process.cpp
@@ -1161,8 +1161,7 @@ bool initialize(
char hostname[512];
if (gethostname(hostname, sizeof(hostname)) < 0) {
- LOG(FATAL) << "Failed to initialize, gethostname: "
- << os::hstrerror(h_errno);
+ PLOG(FATAL) << "Failed to initialize, gethostname";
}
// Lookup IP address of local hostname.