1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

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.
This commit is contained in:
Alan Jenkins 2018-03-03 18:44:39 +00:00
parent b5cdfa40ca
commit f8f9419e87

View File

@ -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;
}