Skip to content

Commit 835ce21

Browse files
committed
src/runtime.c: exit with error status if waitpid() failed
1 parent 032be88 commit 835ce21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/runtime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,14 +667,14 @@ int main(int argc, char *argv[]) {
667667
if (getenv("NO_CLEANUP") == NULL) {
668668
if (!rm_recursive(prefix)) {
669669
fprintf(stderr, "Failed to clean up cache directory\n");
670-
rv = false;
670+
rv = -1;
671671
}
672672
}
673673

674674
// template == prefix, must be freed only once
675675
free(prefix);
676676

677-
exit(rv ? 0 : 1);
677+
exit(rv >= 0 ? 0 : 1);
678678
}
679679

680680
if(arg && strcmp(arg,"appimage-version")==0) {

0 commit comments

Comments
 (0)