--- ray/src/gen/mkillum.c 2009/06/06 05:03:47 2.35 +++ ray/src/gen/mkillum.c 2011/10/05 17:20:55 2.38 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: mkillum.c,v 2.35 2009/06/06 05:03:47 greg Exp $"; +static const char RCSid[] = "$Id: mkillum.c,v 2.38 2011/10/05 17:20:55 greg Exp $"; #endif /* * Make illum sources for optimizing rendering process @@ -8,6 +8,7 @@ static const char RCSid[] = "$Id: mkillum.c,v 2.35 200 #include #include +#include "rtprocess.h" /* win_popen() */ #include "mkillum.h" /* default parameters */ @@ -70,7 +71,6 @@ main( /* compute illum distributions using rtrace */ /* set up rendering defaults */ dstrsrc = 0.5; directrelay = 3; - directvis = 0; ambounce = 2; /* get options from command line */ for (i = 1; i < argc; i++) { @@ -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); }