7 |
|
*/ |
8 |
|
|
9 |
|
#include "rcontrib.h" |
10 |
– |
#include "source.h" |
10 |
|
#include "otypes.h" |
12 |
– |
#include "platform.h" |
11 |
|
|
12 |
|
char *shm_boundary = NULL; /* boundary of shared memory */ |
13 |
|
|
135 |
|
} |
136 |
|
|
137 |
|
|
138 |
< |
/* add modifiers from a file list */ |
138 |
> |
/* Add modifiers from a file list */ |
139 |
|
void |
140 |
|
addmodfile(char *fname, char *outf, char *binv, int bincnt) |
141 |
|
{ |
157 |
|
) |
158 |
|
{ |
159 |
|
if (nchild > 0) /* close children if any */ |
160 |
< |
end_children(); |
160 |
> |
end_children(code != 0); |
161 |
|
exit(code); |
162 |
|
} |
163 |
|
|
186 |
|
if ((account = accumulate) > 1) |
187 |
|
raysleft *= accumulate; |
188 |
|
waitflush = (yres > 0) & (xres > 1) ? 0 : xres; |
191 |
– |
/* tracing to sources as well */ |
192 |
– |
for (i = 0; i < nsources; i++) |
193 |
– |
source[i].sflags |= SFOLLOW; |
189 |
|
|
190 |
|
if (nproc > 1 && in_rchild()) /* forked child? */ |
191 |
|
return; /* return to main processing loop */ |
331 |
|
if (raysleft && !--raysleft) |
332 |
|
break; /* preemptive EOI */ |
333 |
|
} |
334 |
< |
if ((accumulate <= 0) | (account < accumulate)) { |
334 |
> |
if (nchild != -1 && (accumulate <= 0) | (account < accumulate)) { |
335 |
|
if (account < accumulate) { |
336 |
|
error(WARNING, "partial accumulation in final record"); |
337 |
|
accumulate -= account; |