diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index f160af17baf..65b4bb849bf 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -420,7 +420,7 @@ void session_device_free(SessionDevice *sd) { session_device_stop(sd); session_device_notify(sd, SESSION_DEVICE_RELEASE); - close_nointr(sd->fd); + safe_close(sd->fd); LIST_REMOVE(sd_by_device, sd->device->session_devices, sd);