summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>2018-03-03 18:44:39 +0000
committerSven Eden <yamakuzure@gmx.net>2018-05-30 07:59:14 +0200
commita49f03b20c8da8866a911261b146966f86dc541b (patch)
tree9e8116840538736201c74e15a70bdc2cebc69435
parent49737613227ddfe7191797965c8a6d005d890bb8 (diff)
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.
-rw-r--r--src/login/logind-session-device.c1
1 files changed, 1 insertions, 0 deletions
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;
}