Skip to content

Commit a91949a

Browse files
committed
Use _exit() in child process after fork()
This avoids flushing streams twice.
1 parent 652b8f5 commit a91949a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libqrexec/exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void exec_qubes_rpc_if_requested(const char *prog, char *const envp[]) {
6464
do {
6565
if (i >= sizeof(argv)/sizeof(argv[0])-1) {
6666
LOG(ERROR, "To many arguments to %s", RPC_REQUEST_COMMAND);
67-
exit(1);
67+
_exit(1);
6868
}
6969
argv[i++] = tok;
7070
} while ((tok=strtok_r(NULL, " ", &savetok)));

0 commit comments

Comments
 (0)