--- ray/src/gen/mkillum.c 2009/04/18 16:14:26 2.34 +++ ray/src/gen/mkillum.c 2009/12/12 19:00:59 2.36 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mkillum.c,v 2.34 2009/04/18 16:14:26 greg Exp $"; +static const char RCSid[] = "$Id: mkillum.c,v 2.36 2009/12/12 19:00:59 greg Exp $"; #endif /* * Make illum sources for optimizing rendering process @@ -68,7 +68,7 @@ main( /* compute illum distributions using rtrace */ gargv = argv; progname = gargv[0]; /* set up rendering defaults */ - dstrsrc = 0.25; + dstrsrc = 0.5; directrelay = 3; directvis = 0; ambounce = 2; @@ -172,6 +172,16 @@ char *s; { if (warnings) eputs(s); +} + + +void +quit(ec) /* make sure exit is called */ +int ec; +{ + if (ray_pnprocs > 0) /* close children if any */ + ray_pclose(0); + exit(ec); }