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.19 by greg, Sat Apr 17 13:13:58 1993 UTC vs.
Revision 2.21 by greg, Fri Jun 4 17:03:29 1993 UTC

# Line 241 | Line 241 | int
241   nextpiece(xp, yp)               /* get next piece assignment */
242   int  *xp, *yp;
243   {
244        extern char  *fgets();
244          struct flock  fls;
245          char  buf[64];
246  
# Line 336 | Line 335 | rpiece()                       /* render picture piece by piece */
335                  putc('\n', torp);
336                  fflush(torp);                   /* assigns piece to rpict */
337                  putpiece(xorg, yorg);           /* place piece in output */
339                if (verbose) {                  /* notify caller */
340                        printf("%d %d done\n", xorg, yorg);
341                        fflush(stdout);
342                }
338          }
339   }
340  
# Line 417 | Line 412 | int  xpos, ypos;
412                                          1) == -1)
413                                  goto seekerr;
414                  }
415 <        if (pid == -1) {        /* fork failed */
415 >        if (verbose) {                          /* notify caller */
416 >                printf("%d %d done\n", xpos, ypos);
417 >                fflush(stdout);
418 >        }
419 >        if (pid == -1) {        /* didn't fork or fork failed */
420   #if NFS
421                  fls.l_type = F_UNLCK;           /* release lock */
422                  fcntl(outfd, F_SETLKW, &fls);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines