Skip to content

Commit

Permalink
Switch to fork from vfork (#217)
Browse files Browse the repository at this point in the history
Avoids deprecation warnings and works on MacOS
timmattison authored Oct 9, 2024
1 parent cf738c8 commit 79b3f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/jobs/JobEngine.cpp
Original file line number Diff line number Diff line change
@@ -273,7 +273,7 @@ int JobEngine::exec_cmd(std::unique_ptr<const char *[]> &argv)

int execResult;
int returnCode;
int pid = vfork();
int pid = fork();
if (pid < 0)
{
LOGM_ERROR(TAG, "Failed to create child process, fork returned %d", pid);

0 comments on commit 79b3f7a

Please sign in to comment.