From a49f03b20c8da8866a911261b146966f86dc541b Mon Sep 17 00:00:00 2001 From: Alan Jenkins Date: Sat, 3 Mar 2018 18:44:39 +0000 Subject: [PATCH] login: remember that fds received from PID1 need to be removed eventually Remember to set sd->pushed_fd when we receive an fd from PID1 on startup, the same as we set it when we send an fd to PID1. --- src/login/logind-session-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index 9132d0905..fc6027333 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -547,5 +547,6 @@ void session_device_attach_fd(SessionDevice *sd, int fd, bool active) { assert(!sd->active); sd->fd = fd; + sd->pushed_fd = true; sd->active = active; } -- 2.30.2