268 |
|
|
269 |
|
/* Record start time and enable progress report signal handler */ |
270 |
|
repStartTime = time(NULL); |
271 |
< |
signal(SIGCONT, pmapDistribReport); |
271 |
> |
#ifdef SIGCONT |
272 |
> |
signal(SIGCONT, pmapDistribReport); |
273 |
> |
#endif |
274 |
|
|
275 |
|
for (srcIdx = 0; srcIdx < nsources; srcIdx++) { |
276 |
|
unsigned portCnt = 0, passCnt = 0, prePassCnt = 0; |
439 |
|
if (photonRepTime > 0 && |
440 |
|
time(NULL) >= repLastTime + photonRepTime) |
441 |
|
pmapDistribReport(); |
442 |
< |
#ifndef BSD |
442 |
> |
#ifdef SIGCONT |
443 |
|
else signal(SIGCONT, pmapDistribReport); |
444 |
|
#endif |
445 |
|
} |
470 |
|
/* ================================================================ |
471 |
|
* POST-DISTRIBUTION - Set photon flux and build kd-tree, etc. |
472 |
|
* ================================================================ */ |
473 |
< |
signal(SIGCONT, SIG_DFL); |
473 |
> |
#ifdef SIGCONT |
474 |
> |
signal(SIGCONT, SIG_DFL); |
475 |
> |
#endif |
476 |
|
free(emap.samples); |
477 |
|
|
478 |
|
if (!pm -> heapEnd) |