mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -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.
This commit is contained in:
parent
1335e56d40
commit
6b77fc627a
@ -333,6 +333,7 @@ static const char *serial_init(const BackendVtable *vt, Seat *seat,
|
|||||||
static void serial_close(Serial *serial)
|
static void serial_close(Serial *serial)
|
||||||
{
|
{
|
||||||
if (serial->fd >= 0) {
|
if (serial->fd >= 0) {
|
||||||
|
uxsel_del(serial->fd);
|
||||||
close(serial->fd);
|
close(serial->fd);
|
||||||
serial->fd = -1;
|
serial->fd = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user