home *** CD-ROM | disk | FTP | other *** search
- *** rn/util.c Sun Mar 15 19:54:32 1987
- --- rrn/util.c Sun Mar 15 20:50:30 1987
- ***************
- *** 45,50
- else if ((shell = getenv("SHELL")) == Nullch || !*shell)
- shell = PREFSHELL;
- if ((pid = vfork()) == 0) {
- if (*s)
- execl(shell, shell, "-c", s, Nullch);
- else
-
- --- 45,59 -----
- else if ((shell = getenv("SHELL")) == Nullch || !*shell)
- shell = PREFSHELL;
- if ((pid = vfork()) == 0) {
- + #ifdef SERVER
- + int i;
- +
- + /* This is necessary to keep bourne shell from puking */
- +
- + for (i = 3; i < 10; ++i)
- + (void) close(i);
- + #endif SERVER
- +
- if (*s)
- execl(shell, shell, "-c", s, Nullch);
- else
-