client: Clear pending interrupt on stdin EOF

The client can send an interrupt cookie after the EOF cookie.
Harmless, as the server throws away input after the EOF cookie.  Clean
it up anyway.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-12-30 10:21:18 +01:00
parent 3135cd39c3
commit 38097c4986

View file

@ -543,6 +543,7 @@ play(int sock)
eof_fd0 = 1;
sa.sa_handler = SIG_DFL;
sigaction(SIGINT, &sa, NULL);
send_intr = 0;
}
} else
partial_line_sent = ring_peek(&inbuf, -1) != '\n';