74 |
|
/* already closed? */ |
75 |
|
if (!nprocs) |
76 |
|
return; |
77 |
– |
wputs("closing rtrace process...\n"); |
77 |
|
/* flush beam queue */ |
78 |
|
done_packets(flush_queue()); |
79 |
|
/* sync holodeck */ |
81 |
|
/* close rtrace */ |
82 |
|
if ((status = end_rtrace())) |
83 |
|
error(WARNING, "bad exit status from rtrace"); |
84 |
< |
if (vdef(REPORT)) /* report time */ |
84 |
> |
if (vdef(REPORT)) { /* report time */ |
85 |
> |
eputs("rtrace process ended\n"); |
86 |
|
report(0); |
87 |
+ |
} |
88 |
|
return(status); /* return status */ |
89 |
|
} |
90 |
|
|
95 |
|
|
96 |
|
if (nprocs > 0) /* already running? */ |
97 |
|
return; |
97 |
– |
wputs("restarting rtrace process...\n"); |
98 |
|
starttime = time(NULL); /* reset start time and counts */ |
99 |
|
npacksdone = nraysdone = 0L; |
100 |
|
if (vdef(TIME)) /* reset end time */ |
106 |
|
} |
107 |
|
if (start_rtrace() < 1) /* start rtrace */ |
108 |
|
error(WARNING, "cannot restart rtrace"); |
109 |
< |
else if (vdef(REPORT)) |
109 |
> |
else if (vdef(REPORT)) { |
110 |
> |
eputs("rtrace process restarted\n"); |
111 |
|
report(0); |
112 |
+ |
} |
113 |
|
} |
114 |
|
|
115 |
|
|