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:
parent
3135cd39c3
commit
38097c4986
1 changed files with 1 additions and 0 deletions
|
@ -543,6 +543,7 @@ play(int sock)
|
||||||
eof_fd0 = 1;
|
eof_fd0 = 1;
|
||||||
sa.sa_handler = SIG_DFL;
|
sa.sa_handler = SIG_DFL;
|
||||||
sigaction(SIGINT, &sa, NULL);
|
sigaction(SIGINT, &sa, NULL);
|
||||||
|
send_intr = 0;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
partial_line_sent = ring_peek(&inbuf, -1) != '\n';
|
partial_line_sent = ring_peek(&inbuf, -1) != '\n';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue