--- ray/src/hd/rholo.c 1997/12/04 10:30:33 3.16 +++ ray/src/hd/rholo.c 1997/12/08 20:27:34 3.18 @@ -30,6 +30,8 @@ int ncprocs = 0; /* desired number of compute process char *outdev = NULL; /* output device name */ +int readinp = 0; /* read commands from stdin */ + time_t starttime; /* time we got started */ time_t endtime; /* time we should end by */ time_t reporttime; /* time for next report */ @@ -60,7 +62,7 @@ char *argv[]; int force = 0; /* mark start time */ starttime = time(NULL); - initurand(10240); /* initialize urand */ + initurand(16384); /* initialize urand */ progname = argv[0]; /* get arguments */ for (i = 1; i < argc && argv[i][0] == '-'; i++) switch (argv[i][1]) { @@ -70,6 +72,9 @@ char *argv[]; case 'f': /* force overwrite */ force++; break; + case 'i': /* read input from stdin */ + readinp++; + break; case 'n': /* compute processes */ if (i >= argc-2) goto userr; @@ -187,6 +192,8 @@ initrholo() /* get our holodeck running */ { extern int global_packet(); register int i; + /* close holodeck on exec() */ + fcntl(hdlist[0]->fd, F_SETFD, FD_CLOEXEC); if (outdev != NULL) /* open output device */ disp_open(outdev);