]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-button.c
logind: fix closing of button input devices
authorLennart Poettering <lennart@poettering.net>
Mon, 7 Dec 2020 09:51:15 +0000 (10:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Dec 2020 09:08:51 +0000 (10:08 +0100)
commitc74d5fe25d53263c143f0a9c2698d8bb483e398c
tree04209041aba302c44acec1e66a209985dbc325db
parent1d9aa4d572b661fd6500c55ab524141332f76230
logind: fix closing of button input devices

This is a fix of #17751. Specifically:

1. Sort #include headers again

2. Remove tabs, as per coding style

3. Don't install fds in half-initialized objects

4. Use asynchronous_close() everywhere

That all said:

Quit frankly, I am not convinced we should do all this at all. If
close()ing of these input devices is really that slow, then this should
probably be fixed in the kernel, not worked around in userspace like
this.
src/login/logind-button.c