| 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 |
|
|
| 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; |