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

Comparing ray/src/hd/rhdisp.c (file contents):
Revision 3.38 by gwlarson, Sun Dec 20 20:39:31 1998 UTC vs.
Revision 3.41 by gwlarson, Mon Mar 8 17:31:49 1999 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1999 Silicon Graphics, Inc. */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ SGI";
# Line 40 | Line 40 | char   *progname;              /* global argv[0] */
40   FILE    *sstdin, *sstdout;      /* server's standard input and output */
41  
42   #ifdef DEBUG
43 #include <sys/types.h>
43   extern time_t   time();
44   static time_t   tmodesw;
45   static time_t   timm, tadd;
# Line 155 | Line 154 | disp_wait()                    /* wait for more input */
154          int     n;
155          register int    i;
156                                  /* see if we can avoid select call */
157 +        if (hdlist[0] == NULL)
158 +                return(RDY_SRV);        /* initialize first */
159          flgs = 0;               /* flag what's ready already */
160          if (imm_mode || stdin->_cnt > 0)
161                  flgs |= RDY_SRV;
# Line 269 | Line 270 | register VIEW  *v;
270          static VIEW     viewhist[VIEWHISTLEN];
271          static unsigned nhist;
272          VIEW    *dv;
273 <        int     i, res[2], *slist;
273 >        int     i, res[2];
274 >        int2    *slist;
275          char    *err;
276                                  /* restore previous view? */
277          if (v == NULL) {
# Line 502 | Line 504 | serv_result()                  /* get next server result and process
504                  break;
505          case DS_STARTIMM:
506          case DS_ENDIMM:
507 +                if (!(imm_mode = msg.type==DS_STARTIMM))
508 +                        dev_flush();
509   #ifdef DEBUG
510                  {
511                          time_t  tnow = time(NULL);
# Line 510 | Line 514 | serv_result()                  /* get next server result and process
514                          tmodesw = tnow;
515                  }
516   #endif
513                if (!(imm_mode = msg.type==DS_STARTIMM))
514                        dev_flush();
517                  goto noargs;
518          case DS_ACKNOW:
519          case DS_SHUTDOWN:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines