swc

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

commit 531cd7d3a9ba5abae33fe54aa3a26b3defb79ad1
parent 02c2fa349e7a1e4992ac1d3bd05c0001a28e37af
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 22 Jan 2014 03:49:02 -0800

launch: Handle input devices getting removed

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

diff --git a/launch/launch.c b/launch/launch.c @@ -104,7 +104,8 @@ static void stop_devices(bool fatal) for (index = 0; index < launcher.num_input_fds; ++index) { - if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 && fatal) + if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 + && errno != ENODEV && fatal) { die("FATAL: Your kernel does not support EVIOCREVOKE; " "input devices cannot be revoked: %s", strerror(errno));