From ce8786721b17febb5132c136213c95a095f13121 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Sun, 14 May 2017 12:31:22 +1200 Subject: Got it working. --- session/logind.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'session') diff --git a/session/logind.c b/session/logind.c index 7799c14b..b6763bf9 100644 --- a/session/logind.c +++ b/session/logind.c @@ -226,15 +226,6 @@ static int resume_device(sd_bus_message *msg, void *userdata, sd_bus_error *ret_ goto error; } - // The original fd seem to be closed when the message is freed - // so we just clone it. - fd = fcntl(fd, F_DUPFD_CLOEXEC, 0); - if (fd == -1) { - wlr_log(L_ERROR, "Failed to clone file descriptor for ResumeDevice: %s", - strerror(errno)); - goto error; - } - // TODO: Use major/minor to make sure the right devices are getting signals wl_signal_emit(&session->base.device_resumed, &fd); -- cgit v1.2.3