Skip to content

Commit 4f2a991

Browse files
committed
SRC: runtime: exit child on execv errors instead of duplicating parent's cleanups
Signed-off-by: Tim Janik <[email protected]>
1 parent d631bce commit 4f2a991

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/runtime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ int main(int argc, char *argv[]) {
668668
fprintf(stderr, "Failed to run %s: %s\n", apprun_path, strerror(error));
669669

670670
free(apprun_path);
671+
exit(EXIT_EXECERROR);
671672
}
672673

673674
int rv = waitpid(pid, NULL, 0);

0 commit comments

Comments
 (0)