9 |
|
|
10 |
|
#include <sys/types.h> |
11 |
|
#include <signal.h> |
12 |
– |
#ifdef _WIN32 |
13 |
– |
#include <process.h> /* getpid */ |
14 |
– |
#endif |
12 |
|
|
13 |
|
#include "platform.h" |
14 |
+ |
#include "rtprocess.h" /* getpid() */ |
15 |
|
#include "ray.h" |
16 |
|
#include "source.h" |
17 |
|
#include "ambient.h" |
318 |
|
} |
319 |
|
} |
320 |
|
runagain: |
321 |
< |
if (persist) |
321 |
> |
if (persist) { |
322 |
|
if (outfile == NULL) /* if out to stdout */ |
323 |
|
dupheader(); /* send header */ |
324 |
|
else /* if out to file */ |
325 |
|
duped1 = dup(fileno(stdout)); /* hang onto pipe */ |
326 |
+ |
} |
327 |
|
#endif |
328 |
|
/* batch render picture(s) */ |
329 |
|
rpict(seqstart, outfile, zfile, recover); |
424 |
|
void |
425 |
|
printdefaults() /* print default values to stdout */ |
426 |
|
{ |
428 |
– |
register char *cp; |
429 |
– |
|
427 |
|
printf("-vt%c\t\t\t\t# view type %s\n", ourview.type, |
428 |
|
ourview.type==VT_PER ? "perspective" : |
429 |
|
ourview.type==VT_PAR ? "parallel" : |