]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
login: remember that fds received from PID1 need to be removed eventually 8345/head
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 3 Mar 2018 18:44:39 +0000 (18:44 +0000)
committerAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 3 Mar 2018 20:51:45 +0000 (20:51 +0000)
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

index 7253f95981424e3d9df7def043a4340aa2d625c0..73eee725159e6316fecebc4463115d1f139522ce 100644 (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;
 }