| 155 |
|
int n; |
| 156 |
|
register int i; |
| 157 |
|
/* see if we can avoid select call */ |
| 158 |
+ |
if (hdlist[0] == NULL) |
| 159 |
+ |
return(RDY_SRV); /* initialize first */ |
| 160 |
|
flgs = 0; /* flag what's ready already */ |
| 161 |
|
if (imm_mode || stdin->_cnt > 0) |
| 162 |
|
flgs |= RDY_SRV; |
| 271 |
|
static VIEW viewhist[VIEWHISTLEN]; |
| 272 |
|
static unsigned nhist; |
| 273 |
|
VIEW *dv; |
| 274 |
< |
int i, res[2], *slist; |
| 274 |
> |
int i, res[2]; |
| 275 |
> |
int2 *slist; |
| 276 |
|
char *err; |
| 277 |
|
/* restore previous view? */ |
| 278 |
|
if (v == NULL) { |
| 505 |
|
break; |
| 506 |
|
case DS_STARTIMM: |
| 507 |
|
case DS_ENDIMM: |
| 508 |
+ |
if (!(imm_mode = msg.type==DS_STARTIMM)) |
| 509 |
+ |
dev_flush(); |
| 510 |
|
#ifdef DEBUG |
| 511 |
|
{ |
| 512 |
|
time_t tnow = time(NULL); |
| 515 |
|
tmodesw = tnow; |
| 516 |
|
} |
| 517 |
|
#endif |
| 513 |
– |
if (!(imm_mode = msg.type==DS_STARTIMM)) |
| 514 |
– |
dev_flush(); |
| 518 |
|
goto noargs; |
| 519 |
|
case DS_ACKNOW: |
| 520 |
|
case DS_SHUTDOWN: |