Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit fee2e42

Browse files
committed
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 6b77fc6)
1 parent fade8e8 commit fee2e42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unix/uxser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ static const char *serial_init(Seat *seat, Backend **backend_handle,
333333
static void serial_close(Serial *serial)
334334
{
335335
if (serial->fd >= 0) {
336+
uxsel_del(serial->fd);
336337
close(serial->fd);
337338
serial->fd = -1;
338339
}

0 commit comments

Comments
 (0)