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

Comparing ray/src/hd/rholo4.c (file contents):
Revision 3.38 by greg, Fri Oct 5 19:19:16 2018 UTC vs.
Revision 3.39 by greg, Fri Feb 28 05:18:49 2020 UTC

# Line 23 | Line 23 | static const char      RCSid[] = "$Id$";
23   #endif
24  
25   static int      inp_flags;
26 < static SUBPROC  dpd;
26 > static SUBPROC  dpd = SP_INACTIVE;
27   static FILE     *dpout;
28  
29   static void disp_flush(void);
# Line 41 | Line 41 | disp_open(             /* open the named display driver */
41          if (!strcmp(dname, SLAVENAME)) {
42                  dpd.r = 0;              /* read from stdin */
43                  dpout = stdout;         /* write to stdout */
44 <                dpd.running = 0; /* we're the slave procees */
44 >                dpd.flags = 0;          /* we're the slave procees */
45          } else {
46                                          /* get full display program name */
47   #ifdef DEVPATH
# Line 260 | Line 260 | disp_close(void)                       /* close our display process */
260          disp_result(DS_SHUTDOWN, 0, NULL);
261          fclose(dpout);
262          dpout = NULL;
263 <        return(dpd.running ? close_process(&dpd) : 0);
263 >        return(dpd.flags&PF_RUNNING ? close_process(&dpd) : 0);
264  
265   }
266  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines