commit 531cd7d

Michael Forney  ·  2014-01-22 11:49:02 +0000 UTC
parent 02c2fa3
launch: Handle input devices getting removed
1 files changed,  +2, -1
+2, -1
 1@@ -104,7 +104,8 @@ static void stop_devices(bool fatal)
 2 
 3     for (index = 0; index < launcher.num_input_fds; ++index)
 4     {
 5-        if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1 && fatal)
 6+        if (ioctl(launcher.input_fds[index], EVIOCREVOKE, 0) == -1
 7+            && errno != ENODEV && fatal)
 8         {
 9             die("FATAL: Your kernel does not support EVIOCREVOKE; "
10                 "input devices cannot be revoked: %s", strerror(errno));