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

Comparing ray/src/rt/rc3.c (file contents):
Revision 2.13 by greg, Tue Jun 19 01:27:13 2012 UTC vs.
Revision 2.15 by greg, Thu Jun 21 17:14:32 2012 UTC

# Line 6 | Line 6 | static const char RCSid[] = "$Id$";
6   * Controlling process for multiple children
7   */
8  
9 + #include <signal.h>
10   #include "rcontrib.h"
10 #include "platform.h"
11   #include "rtprocess.h"
12   #include "selcall.h"
13  
# Line 321 | Line 321 | end_children(int immed)
321          
322          while (nchild > 0) {
323                  nchild--;
324 + #ifdef SIGKILL
325                  if (immed)              /* error mode -- quick exit */
326                          kill(kida[nchild].pr.pid, SIGKILL);
327 + #endif
328                  if ((status = close_process(&kida[nchild].pr)) > 0 && !immed) {
329                          sprintf(errmsg,
330                                  "rendering process returned bad status (%d)",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines