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.6 by gregl, Thu Nov 20 11:40:11 1997 UTC vs.
Revision 3.10 by gregl, Mon Dec 1 16:35:35 1997 UTC

# Line 73 | Line 73 | int    block;
73                                          /* read message header */
74          n = read(dpd[0], (char *)&msg, sizeof(MSGHEAD));
75          if (n != sizeof(MSGHEAD)) {
76 <                if (n >= 0)
76 >                if (n >= 0) {
77 >                        dpout = NULL;
78                          error(USER, "display process died");
79 +                }
80                  if (errno != EAGAIN & errno != EINTR)
81                          goto readerr;
82                  return(2);              /* acceptable failure */
# Line 108 | Line 110 | int    block;
110                  disp_result(DS_STARTIMM, 0, NULL);
111                  bundle_set(BS_ADD, (PACKHEAD *)buf, msg.nbytes/sizeof(PACKHEAD));
112                  disp_result(DS_ENDIMM, 0, NULL);
113 +                disp_check(0);          /* hack -- delete usu. follows add */
114 +                break;
115 +        case DR_ADJSET:
116 +                if (msg.nbytes % sizeof(PACKHEAD))
117 +                        error(INTERNAL, "bad DR_ADJSET from display process");
118 +                disp_result(DS_STARTIMM, 0, NULL);
119 +                bundle_set(BS_ADJ, (PACKHEAD *)buf, msg.nbytes/sizeof(PACKHEAD));
120 +                disp_result(DS_ENDIMM, 0, NULL);
121                  disp_flush();
122                  break;
123          case DR_DELSET:
# Line 125 | Line 135 | int    block;
135                  if (msg.nbytes)
136                          error(INTERNAL, "bad DR_SHUTDOWN from display process");
137                  return(0);              /* zero return signals shutdown */
138 +        case DR_NOOP:
139 +                break;
140          default:
141                  error(INTERNAL, "unrecognized request from display process");
142          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines