]> git.ipfire.org Git - thirdparty/qemu.git/commit
char-pty: remove the check for connection on write
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 6 Feb 2019 17:43:27 +0000 (18:43 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Feb 2019 15:46:39 +0000 (16:46 +0100)
commitf8278c7d74c6b92b3dbbd6636d6e8917d6050378
treef4d4e8f3d083ffce56cfe13d99a5e32368eff793
parent64c3f266dd14d62886b4a51f6bfce49ac14620fa
char-pty: remove the check for connection on write

This doesn't help much compared to the 1 second poll PTY
timer. I can't think of a use case where this would help.

However, we can simplify the code around chr_write(): the write lock
is no longer needed for other char-pty callbacks (see following
patch).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190206174328.9736-6-marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
chardev/char-pty.c