logind: close_device should not close fd
This commit is contained in:
parent
ca6478716d
commit
7bf91a5f9f
1 changed files with 0 additions and 2 deletions
|
@ -130,7 +130,6 @@ static int close_device(struct libseat *base, int device_id) {
|
||||||
struct stat st = {0};
|
struct stat st = {0};
|
||||||
if (fstat(fd, &st) < 0) {
|
if (fstat(fd, &st) < 0) {
|
||||||
log_errorf("Could not stat fd %d", fd);
|
log_errorf("Could not stat fd %d", fd);
|
||||||
close(fd);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (dev_is_drm(st.st_rdev)) {
|
if (dev_is_drm(st.st_rdev)) {
|
||||||
|
@ -138,7 +137,6 @@ static int close_device(struct libseat *base, int device_id) {
|
||||||
log_debugf("DRM device closed, current total: %d", session->has_drm);
|
log_debugf("DRM device closed, current total: %d", session->has_drm);
|
||||||
assert(session->has_drm >= 0);
|
assert(session->has_drm >= 0);
|
||||||
}
|
}
|
||||||
close(fd);
|
|
||||||
|
|
||||||
sd_bus_message *msg = NULL;
|
sd_bus_message *msg = NULL;
|
||||||
sd_bus_error error = SD_BUS_ERROR_NULL;
|
sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue