chiark / gitweb /
logind: use the new FDSTOREREMOVE=1 sd_notify() message
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Nov 2017 18:06:11 +0000 (19:06 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 13 Nov 2017 18:06:11 +0000 (19:06 +0100)
commitc8da38bdce575d4b32b5428be072e722f8c4ba39
tree5b0a210754739434d35e0d4f843a99cb48576285
parent39a1d713da4a5c60c88d97b864f01622e83a63ca
logind: use the new FDSTOREREMOVE=1 sd_notify() message

Let's explicitly tell PID 1 that we don't need an fd anymore, instead of
relying exclusively on POLLERR/POLLHUP for it to be removed.

Fixes: #6908
src/login/logind-session-device.c
src/login/logind-session-device.h