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:
Markus Armbruster 2007-11-15 19:10:04 +00:00
parent bd0d5c10b6
commit 79407e68fd
3 changed files with 28 additions and 6 deletions

View file

@ -302,6 +302,7 @@ execute(void)
}
if (redir == NULL)
pr("Execute : %s\n", failed ? "aborted" : "terminated");
player->eof = 0;
return RET_OK;
}