9 |
|
|
10 |
|
#include "copyright.h" |
11 |
|
|
12 |
< |
#include "platform.h" |
12 |
> |
#include "platform.h" |
13 |
|
|
14 |
|
#include "standard.h" |
15 |
|
|
16 |
– |
#include "color.h" |
17 |
– |
|
16 |
|
#include "driver.h" |
17 |
|
|
20 |
– |
#include "vfork.h" |
21 |
– |
|
18 |
|
#ifndef DEVPATH |
19 |
|
#define DEVPATH getenv("PATH") /* device search path */ |
20 |
|
#endif |
80 |
|
/* open communication pipes */ |
81 |
|
if (pipe(p1) == -1 || pipe(p2) == -1) |
82 |
|
goto syserr; |
83 |
< |
if ((devchild = vfork()) == 0) { /* fork driver process */ |
83 |
> |
if ((devchild = fork()) == 0) { /* fork driver process */ |
84 |
|
close(p1[1]); |
85 |
|
close(p2[0]); |
86 |
|
sprintf(pin, "%d", p1[0]); |