chiark / gitweb /
logind: get a fresh file descriptor to clean up a VT
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 18 Aug 2015 19:19:05 +0000 (15:19 -0400)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:18:46 +0000 (10:18 +0100)
commitb79f7282da05915ac86a02e460cccad41f7b7d0c
treea862ad8da46a048d9999055418246ef600be8918
parent21fa96e9227e2438f44de929ee6787ad32360c16
logind: get a fresh file descriptor to clean up a VT

When the controlling process exits, any existing file descriptors
for that FD will be marked as hung-up and ioctls on them will
file with EIO. To work around this, open a new file descriptor
for the VT we want to clean up.

Thanks to Ray Strode for help in sorting out the problem and
coming up with a fix!

https://github.com/systemd/systemd/issues/989
src/login/logind-session.c