]> git.pond.sub.org Git - empserver/commitdiff
client: Clear pending interrupt on stdin EOF
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 30 Dec 2015 09:21:18 +0000 (10:21 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 09:22:29 +0000 (11:22 +0200)
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>
src/client/play.c

index 9881622f67749c0e842a1b3e3bcba835cd83bea7..bc7f629b785d19f496ad2529d08fca3d74fc988d 100644 (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';