Skip to content

Commit

Permalink
Use _exit() in child process after fork()
Browse files Browse the repository at this point in the history
This avoids flushing streams twice.
  • Loading branch information
DemiMarie committed Apr 26, 2024
1 parent 652b8f5 commit a91949a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libqrexec/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void exec_qubes_rpc_if_requested(const char *prog, char *const envp[]) {
do {
if (i >= sizeof(argv)/sizeof(argv[0])-1) {
LOG(ERROR, "To many arguments to %s", RPC_REQUEST_COMMAND);
exit(1);
_exit(1);
}
argv[i++] = tok;
} while ((tok=strtok_r(NULL, " ", &savetok)));
Expand Down

0 comments on commit a91949a

Please sign in to comment.