From: Alan Jenkins Date: Sat, 3 Mar 2018 18:44:39 +0000 (+0000) Subject: login: remember that fds received from PID1 need to be removed eventually X-Git-Tag: v238~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8345%2Fhead;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index 7253f959814..73eee725159 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -543,5 +543,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; }