projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.7.1.24:
[sbcl.git]
/
src
/
runtime
/
run-program.c
diff --git
a/src/runtime/run-program.c
b/src/runtime/run-program.c
index
a4bfbf1
..
6e7bf18
100644
(file)
--- a/
src/runtime/run-program.c
+++ b/
src/runtime/run-program.c
@@
-13,14
+13,10
@@
* files for more information.
*/
* files for more information.
*/
-/*
- * $Header$
- */
-
#include <sys/file.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
-#ifdef SVR4
+#if defined(SVR4) || defined(__linux__)
#include <unistd.h>
#endif
#include <unistd.h>
#endif
@@
-36,7
+32,7
@@
int spawn(char *program, char *argv[], char *envp[], char *pty_name,
/* Put us in our own process group. */
#if defined(hpux)
setsid();
/* Put us in our own process group. */
#if defined(hpux)
setsid();
-#elif defined(SVR4)
+#elif defined(SVR4) || defined(__linux__)
setpgrp();
#else
setpgrp(0, getpid());
setpgrp();
#else
setpgrp(0, getpid());