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

Comparing ray/src/common/process.c (file contents):
Revision 1.1 by greg, Tue Jul 23 15:56:57 1991 UTC vs.
Revision 2.3 by greg, Thu Apr 1 11:08:05 1993 UTC

# Line 23 | Line 23 | static char SCCSid[] = "$SunId$ LBL";
23   #endif
24   #endif
25  
26 < #ifndef BSD
27 < #define vfork           fork
28 < #endif
26 > #include  "vfork.h"
27  
28  
29   int
# Line 102 | Line 100 | int    fd;
100   char    *bpos;
101   int     siz;
102   {
103 <        register int    cc, nrem = siz;
103 >        register int    cc = 0, nrem = siz;
104  
105          while (nrem > 0 && (cc = read(fd, bpos, nrem)) > 0) {
106                  bpos += cc;
# Line 120 | Line 118 | int    fd;
118   char    *bpos;
119   int     siz;
120   {
121 <        register int    cc, nrem = siz;
121 >        register int    cc = 0, nrem = siz;
122  
123          while (nrem > 0 && (cc = write(fd, bpos, nrem)) > 0) {
124                  bpos += cc;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines