forked from qt-creator/qt-creator
Utils: Fix "Unused result" warning in process stub
Change-Id: If0fbe55106936526ec4993963f2cb0dc4041f937 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
1b46022330
commit
92b49c2eb2
@@ -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 (;;) {
|
||||
|
Reference in New Issue
Block a user