ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rpiece.c
(Generate patch)

Comparing ray/src/util/rpiece.c (file contents):
Revision 2.30 by greg, Mon Apr 11 14:44:10 1994 UTC vs.
Revision 2.31 by greg, Thu Nov 30 09:26:20 1995 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1993 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 69 | Line 69 | int  nforked = 0;
69  
70   char  *progname;
71   int  verbose = 0;
72 + unsigned  timelim = 0;
73   int  rvrlim = -1;
74  
75   extern long  lseek(), ftell();
# Line 120 | Line 121 | char  *argv[];
121                                          break;
122                                  pixaspect = atof(argv[i+1]);
123                                  continue;
124 +                        case 'T':               /* time limit (hours) */
125 +                                if (argv[i][2])
126 +                                        break;
127 +                                timelim = atof(argv[++i])*3600. + .5;
128 +                                break;
129                          case 'x':               /* overall x resolution */
130                                  if (argv[i][2])
131                                          break;
# Line 280 | Line 286 | char  **av;
286                  exit(1);
287          }
288          signal(SIGALRM, onalrm);
289 +        if (timelim)
290 +                alarm(timelim);
291          return;
292   filerr:
293          fprintf(stderr, "%s: i/o error on file \"%s\"\n", progname, outfile);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines