| 23 |
|
#endif |
| 24 |
|
|
| 25 |
|
static int inp_flags; |
| 26 |
< |
static SUBPROC dpd; |
| 26 |
> |
static SUBPROC dpd = SP_INACTIVE; |
| 27 |
|
static FILE *dpout; |
| 28 |
|
|
| 29 |
|
static void disp_flush(void); |
| 41 |
|
if (!strcmp(dname, SLAVENAME)) { |
| 42 |
|
dpd.r = 0; /* read from stdin */ |
| 43 |
|
dpout = stdout; /* write to stdout */ |
| 44 |
< |
dpd.running = 0; /* we're the slave procees */ |
| 44 |
> |
dpd.flags = 0; /* we're the slave procees */ |
| 45 |
|
} else { |
| 46 |
|
/* get full display program name */ |
| 47 |
|
#ifdef DEVPATH |
| 260 |
|
disp_result(DS_SHUTDOWN, 0, NULL); |
| 261 |
|
fclose(dpout); |
| 262 |
|
dpout = NULL; |
| 263 |
< |
return(dpd.running ? close_process(&dpd) : 0); |
| 263 |
> |
return(dpd.flags&PF_RUNNING ? close_process(&dpd) : 0); |
| 264 |
|
|
| 265 |
|
} |
| 266 |
|
|