# | Line 10 | Line 10 | static const char RCSid[] = "$Id$"; | |
---|---|---|
10 | ||
11 | #include "copyright.h" | |
12 | ||
13 | + | #include <sys/types.h> |
14 | + | #include <sys/wait.h> |
15 | + | |
16 | #include "rtprocess.h" | |
14 | – | #include "vfork.h" |
17 | ||
18 | ||
19 | int | |
# | Line 31 | Line 33 | char *av[] | |
33 | return(0); | |
34 | if (pipe(p0) < 0 || pipe(p1) < 0) | |
35 | return(-1); | |
36 | < | if ((pd->pid = vfork()) == 0) { /* if child */ |
36 | > | if ((pd->pid = fork()) == 0) { /* if child */ |
37 | close(p0[1]); | |
38 | close(p1[0]); | |
39 | if (p0[0] != 0) { /* connect p0 to stdin */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |