chiark / gitweb /
login: remember that fds received from PID1 need to be removed eventually
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Sat, 3 Mar 2018 18:44:39 +0000 (18:44 +0000)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:14 +0000 (07:59 +0200)
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 9132d0905211d96386f051897ab6f7042c58c61e..fc602733394676feda1f8335b787a3eb145ba1a4 100644 (file)
@@ -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;
 }