You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2017/03/16 20:43:47 UTC
mesos git commit: Used `os::DEV_NULL` instead of plain "/dev/null" in
checker library.
Repository: mesos
Updated Branches:
refs/heads/master 16298e7f0 -> 09efd575e
Used `os::DEV_NULL` instead of plain "/dev/null" in checker library.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/09efd575
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/09efd575
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/09efd575
Branch: refs/heads/master
Commit: 09efd575e9525fd5b9efd6c127f5a53dba5af8d5
Parents: 16298e7
Author: Alexander Rukletsov <al...@apache.org>
Authored: Thu Mar 16 21:38:16 2017 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Thu Mar 16 21:43:23 2017 +0100
----------------------------------------------------------------------
src/checks/checker.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/09efd575/src/checks/checker.cpp
----------------------------------------------------------------------
diff --git a/src/checks/checker.cpp b/src/checks/checker.cpp
index 5aae957..314354c 100644
--- a/src/checks/checker.cpp
+++ b/src/checks/checker.cpp
@@ -365,7 +365,7 @@ Future<int> CheckerProcess::commandCheck()
s = process::subprocess(
command.value(),
- Subprocess::PATH("/dev/null"),
+ Subprocess::PATH(os::DEV_NULL),
Subprocess::FD(STDERR_FILENO),
Subprocess::FD(STDERR_FILENO),
environment,
@@ -381,7 +381,7 @@ Future<int> CheckerProcess::commandCheck()
s = process::subprocess(
command.value(),
argv,
- Subprocess::PATH("/dev/null"),
+ Subprocess::PATH(os::DEV_NULL),
Subprocess::FD(STDERR_FILENO),
Subprocess::FD(STDERR_FILENO),
nullptr,
@@ -480,7 +480,7 @@ Future<int> CheckerProcess::httpCheck()
"-L", // Follows HTTP 3xx redirects.
"-k", // Ignores SSL validation when scheme is https.
"-w", "%{http_code}", // Displays HTTP response code on stdout.
- "-o", "/dev/null", // Ignores output.
+ "-o", os::DEV_NULL, // Ignores output.
url
};
@@ -489,7 +489,7 @@ Future<int> CheckerProcess::httpCheck()
Try<Subprocess> s = process::subprocess(
HTTP_CHECK_COMMAND,
argv,
- Subprocess::PATH("/dev/null"),
+ Subprocess::PATH(os::DEV_NULL),
Subprocess::PIPE(),
Subprocess::PIPE(),
nullptr,