summaryrefslogtreecommitdiff
path: root/sal/osl/unx/process.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-10-31 13:52:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-10-31 13:52:45 +0100
commit508a78e4b16e710ddb654114eb83ad63b1414534 (patch)
treec6913c644b1bbc752f7d1f32671130c5967c5ac6 /sal/osl/unx/process.cxx
parentac7c79a82fc8768b2564ef7f20bff38db6946c9b (diff)
cid#982172 Silently ignore F_SETFD FD_CLOEXEC failures
...there should not be any legitimate reason these fcntl calls can fail, anyway. Change-Id: Ib5cbe5b40ff42656fe3bad2ac50dcf6faeca0e9d
Diffstat (limited to 'sal/osl/unx/process.cxx')
-rw-r--r--sal/osl/unx/process.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx
index 8503ff0deb75..a59c19fb67cb 100644
--- a/sal/osl/unx/process.cxx
+++ b/sal/osl/unx/process.cxx
@@ -215,8 +215,8 @@ static void ChildStatusProc(void *pData)
SAL_WARN("sal.osl", "executeProcess socketpair() errno " << status);
}
- fcntl(channel[0], F_SETFD, FD_CLOEXEC);
- fcntl(channel[1], F_SETFD, FD_CLOEXEC);
+ (void) fcntl(channel[0], F_SETFD, FD_CLOEXEC);
+ (void) fcntl(channel[1], F_SETFD, FD_CLOEXEC);
/* Create redirected IO pipes */
if ( status == 0 && data.m_pInputWrite && pipe( stdInput ) == -1 )