aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/process_stub_unix.c
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-12-27 08:18:56 +0200
committerOrgad Shaneh <orgads@gmail.com>2017-01-02 16:10:44 +0000
commit92b49c2eb200f480e6c041307d54bd64692eb592 (patch)
tree0bdc328e6a1dabbdc14e6d8ab116b7d99ed36045 /src/libs/utils/process_stub_unix.c
parent1b46022330e6cb10e67d0878f694f7905f0776a3 (diff)
Utils: Fix "Unused result" warning in process stub
Change-Id: If0fbe55106936526ec4993963f2cb0dc4041f937 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'src/libs/utils/process_stub_unix.c')
-rw-r--r--src/libs/utils/process_stub_unix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/utils/process_stub_unix.c b/src/libs/utils/process_stub_unix.c
index 145d31d50d7..8d9cd8d7495 100644
--- a/src/libs/utils/process_stub_unix.c
+++ b/src/libs/utils/process_stub_unix.c
@@ -308,7 +308,9 @@ int main(int argc, char *argv[])
execvp(argv[ArgExe], argv + ArgExe);
/* Only expected error: no such file or direcotry, i.e. executable not found */
errNo = errno;
- write(chldPipe[1], &errNo, sizeof(errNo)); /* Only realistic error case is SIGPIPE */
+ /* Only realistic error case is SIGPIPE */
+ if (write(chldPipe[1], &errNo, sizeof(errNo)) != sizeof(errNo))
+ perror("Error passing errno to child");
_exit(0);
default:
for (;;) {