--- ray/src/util/ranimove.c 2016/04/18 22:39:13 3.18 +++ ray/src/util/ranimove.c 2023/02/06 22:40:21 3.20 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ranimove.c,v 3.18 2016/04/18 22:39:13 greg Exp $"; +static const char RCSid[] = "$Id: ranimove.c,v 3.20 2023/02/06 22:40:21 greg Exp $"; #endif /* * Radiance object animation program @@ -170,7 +170,7 @@ userr: void eputs( /* put string to stderr */ - char *s + const char *s ) { static int midline = 0; @@ -193,7 +193,9 @@ void quit(int ec) /* make sure exit is called */ { if (ray_pnprocs > 0) /* close children if any */ - ray_pclose(0); + ray_pclose(0); + else if (ray_pnprocs < 0) + _exit(ec); /* avoid flush in child */ exit(ec); }