| 66 |
|
CUBE thescene; /* our scene */ |
| 67 |
|
OBJECT nsceneobjs; /* number of objects in our scene */ |
| 68 |
|
|
| 69 |
+ |
extern long raynum, nrays; /* ray counts */ |
| 70 |
+ |
|
| 71 |
|
extern int imm_irrad; /* calculate immediate irradiance? */ |
| 72 |
|
|
| 73 |
|
extern int ralrm; /* seconds between reports */ |
| 576 |
|
while ((rval=fork()) == 0) { /* keep on forkin' */ |
| 577 |
|
pflock(1); |
| 578 |
|
pfhold(); |
| 579 |
+ |
tstart = time(0); |
| 580 |
|
} |
| 581 |
|
if (rval < 0) |
| 582 |
|
error(SYSTEM, "cannot fork child for persist function"); |
| 611 |
|
} |
| 612 |
|
if (persist) { /* wait for a signal then go again */ |
| 613 |
|
pfhold(); |
| 614 |
< |
dupheader(); |
| 614 |
> |
tstart = time(0); /* reinitialize counters */ |
| 615 |
> |
raynum = nrays = 0; |
| 616 |
> |
dupheader(); /* reproduce header */ |
| 617 |
|
goto runagain; |
| 618 |
|
} |
| 619 |
|
#endif |