Shut down session on receipt of "ctld\n" even when reading arguments:
(player): New member eof. (recvclient): Return -1 without receiving input when it is set. Set it on receipt of "ctld\n". (execute): Clear it after receiving the script.
This commit is contained in:
parent
bd0d5c10b6
commit
79407e68fd
3 changed files with 28 additions and 6 deletions
|
@ -76,7 +76,8 @@ struct player {
|
|||
double dolcost;
|
||||
int broke;
|
||||
time_t curup; /* when last input was received */
|
||||
int aborted;
|
||||
int aborted; /* interrupt cookie received? */
|
||||
int eof; /* EOF (cookie or real) received? */
|
||||
int curid; /* for pr, cur. line's id, -1 none */
|
||||
char *map; /* pointer to in-mem map */
|
||||
char *bmap; /* pointer to in-mem bmap */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue