diff options
author | Lukacs Berki <lberki@google.com> | 2016-09-13 07:52:01 +0000 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2016-09-13 12:31:58 +0000 |
commit | cdd42274f7e6fa862f3bd3ba7115f2c9feac5d50 (patch) | |
tree | 2253ad8fcafaa6117659b0395a39847cb973e495 /src/main/cpp/blaze_util_posix.cc | |
parent | ef54fb52e3b33ccf9713dca49a5bef01fc860174 (diff) |
More client fixes:
- Use an explicit cast to void to tell the compiler that we are intentionally ignoring return values.
- Delete the unused function GetPeerProcessId()
--
MOS_MIGRATED_REVID=132970162
Diffstat (limited to 'src/main/cpp/blaze_util_posix.cc')
-rw-r--r-- | src/main/cpp/blaze_util_posix.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/cpp/blaze_util_posix.cc b/src/main/cpp/blaze_util_posix.cc index 2203cb0b20..a7ba5d4f4d 100644 --- a/src/main/cpp/blaze_util_posix.cc +++ b/src/main/cpp/blaze_util_posix.cc @@ -100,9 +100,7 @@ static void Daemonize(const string& daemon_output) { // In a daemon, no-one can hear you scream. open("/dev/null", O_WRONLY); } - if (dup(STDOUT_FILENO)) { // stderr (2>&1) - // Placate the compiler. - } + (void) dup(STDOUT_FILENO); // stderr (2>&1) } class PipeBlazeServerStartup : public BlazeServerStartup { |