projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reduce random casting in looks_like_valid_lisp_pointer_p().
[sbcl.git]
/
src
/
runtime
/
run-program.c
diff --git
a/src/runtime/run-program.c
b/src/runtime/run-program.c
index
7377e7f
..
4e6f829
100644
(file)
--- a/
src/runtime/run-program.c
+++ b/
src/runtime/run-program.c
@@
-140,7
+140,9
@@
int spawn(char *program, char *argv[], int sin, int sout, int serr,
}
if (child_errno) {
waitpid(pid, NULL, 0);
- pid = 0;
+ /* Our convention to tell Lisp that it was the exec that
+ * failed, not the fork. */
+ pid = -2;
errno = child_errno;
}
}