mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -05:00
uxser: add a missing uxsel_del.
If we close a serial port fd, we shouldn't leave it active in uxsel. That never ends well. (cherry picked from commit 6b77fc627a7b428e5d4854bb1092fb23f25e9ddc)
This commit is contained in:
parent
fade8e81bf
commit
fee2e42be6
@ -333,6 +333,7 @@ static const char *serial_init(Seat *seat, Backend **backend_handle,
|
||||
static void serial_close(Serial *serial)
|
||||
{
|
||||
if (serial->fd >= 0) {
|
||||
uxsel_del(serial->fd);
|
||||
close(serial->fd);
|
||||
serial->fd = -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user