ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapcontrib.c
(Generate patch)

Comparing ray/src/rt/pmapcontrib.c (file contents):
Revision 2.2 by greg, Tue Apr 21 19:16:51 2015 UTC vs.
Revision 2.3 by rschregle, Wed Apr 22 20:28:16 2015 UTC

# Line 268 | Line 268 | void distribPhotonContrib (PhotonMap* pm)
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;
# Line 437 | Line 439 | void distribPhotonContrib (PhotonMap* pm)
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                    }
# Line 468 | Line 470 | void distribPhotonContrib (PhotonMap* pm)
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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines