Skip to content

Commit

Permalink
LibCore: Don't continue in forked child if exec() fails
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Apr 30, 2020
1 parent 8fc6ff9 commit 36a5e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/LibCore/DesktopServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ bool spawn(String executable, String argument)
if (child_pid == 0) {
if (execl(executable.characters(), executable.characters(), argument.characters(), nullptr) < 0) {
perror("execl");
return false;
exit(1);
}
ASSERT_NOT_REACHED();
}
Expand Down

0 comments on commit 36a5e0b

Please sign in to comment.