Utils: Fix "Unused result" warning in process stub

Change-Id: If0fbe55106936526ec4993963f2cb0dc4041f937
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Orgad Shaneh
2016-12-27 08:18:56 +02:00
committed by Orgad Shaneh
parent 1b46022330
commit 92b49c2eb2

View File

@@ -308,7 +308,9 @@ int main(int argc, char *argv[])
execvp(argv[ArgExe], argv + ArgExe); execvp(argv[ArgExe], argv + ArgExe);
/* Only expected error: no such file or direcotry, i.e. executable not found */ /* Only expected error: no such file or direcotry, i.e. executable not found */
errNo = errno; 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); _exit(0);
default: default:
for (;;) { for (;;) {