Re: [Qemu-devel] [PATCH 1/2] monitor: Reset HMP mon->rs on CHR_EVENT_CLOSED

2014-09-11 Thread Markus Armbruster
Stratos Psomadakis writes: > Commit cdaa86a54 ("Add G_IO_HUP handler for socket chardev") exposed a > bug in the way the HMP monitor handles its input. When a client closes > the connection to the monitor, tcp_chr_read() will catch the HUP > 'signal' and call tcp_chr_disconnect() to close the se

[Qemu-devel] [PATCH 1/2] monitor: Reset HMP mon->rs on CHR_EVENT_CLOSED

2014-09-11 Thread Stratos Psomadakis
Commit cdaa86a54 ("Add G_IO_HUP handler for socket chardev") exposed a bug in the way the HMP monitor handles its input. When a client closes the connection to the monitor, tcp_chr_read() will catch the HUP 'signal' and call tcp_chr_disconnect() to close the server-side connection too. Due to the