si_spawn_subprocess: _exit instead of abort if exec fails

On MacOS, the stream flushing that happens as part of abort can corrupt streams
in the parent process. See: #600
This commit is contained in:
Eric Timmons 2020-11-12 16:43:30 -05:00
parent 1effa6a160
commit 6a058a4bfc

View file

@ -529,7 +529,7 @@ si_spawn_subprocess(cl_object command, cl_object argv, cl_object environ,
}
/* at this point exec has failed */
perror("exec");
abort();
_exit(EXIT_FAILURE);
}
close(child_stdin);
close(child_stdout);