diff options
author | Alan Jenkins <alan.christopher.jenkins@gmail.com> | 2018-03-03 18:44:39 +0000 |
---|---|---|
committer | Alan Jenkins <alan.christopher.jenkins@gmail.com> | 2018-03-03 20:51:45 +0000 |
commit | f8f9419e8765dd427301fa479fb014c5f92250ed (patch) | |
tree | 1e06d142d2758160e7ffabf70cddaf063a2ecbf2 /src/login/logind-session-device.c | |
parent | b5cdfa40ca6aae5e98a69da7a8b350215f807649 (diff) | |
download | systemd-f8f9419e8765dd427301fa479fb014c5f92250ed.tar.gz |
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.
Diffstat (limited to 'src/login/logind-session-device.c')
-rw-r--r-- | src/login/logind-session-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index 7253f95981..73eee72515 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; } |