1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ SGI"; |
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; |
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; |
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) { |
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); |
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: |