chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4973761
)
login: remember that fds received from PID1 need to be removed eventually
author
Alan Jenkins
<alan.christopher.jenkins@gmail.com>
Sat, 3 Mar 2018 18:44:39 +0000
(18:44 +0000)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/src/login/logind-session-device.c
b/src/login/logind-session-device.c
index 9132d0905211d96386f051897ab6f7042c58c61e..fc602733394676feda1f8335b787a3eb145ba1a4 100644
(file)
--- 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;
}