Skip to content

Commit

Permalink
logind: make sure we don't trip up on half-initialized session devices
Browse files Browse the repository at this point in the history
Fixes: systemd#8035
(cherry picked from commit 4d219f5)

[fbui: fixes bsc#1123727]
  • Loading branch information
poettering authored and fbuihuu committed Feb 6, 2019
1 parent 95828c0 commit 767e6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/login/logind-session-device.c
Expand Up @@ -411,7 +411,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);

Expand Down

0 comments on commit 767e6ba

Please sign in to comment.