Skip to content

Commit

Permalink
fix: If execvp fails, the process should be exited.
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIINASAMA committed Dec 22, 2024
1 parent 391f36b commit dfa2877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sese/native/unix/system/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ sese::Result<Process::Ptr, sese::ErrorCode> Process::createEx(const std::string
delete[] c_args[i];
}
delete[] c_args;
exit(errno);
return Result<Process::Ptr, ErrorCode>::error({getErrorCode(), getErrorString()}); // GCOVR_EXCL_LINE
} else {
// never reach
Expand Down

0 comments on commit dfa2877

Please sign in to comment.