swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 3f320bccfec24a34045db197be965254b42f7af6
parent d8d8757e1aea8a8f9710bb9677cabf93c9898646
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 23 Nov 2013 20:31:38 -0800

Fix EVIOCREVOKE

Shame on me for copying systemd.

Diffstat:
Mlaunch/launch.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/launch/launch.c b/launch/launch.c @@ -95,7 +95,7 @@ static void stop_devices() for (index = 0; index < launcher.num_input_fds; ++index) { - if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 1) == -1 + if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 && errno == EINVAL) { static bool warned = false;