From: Jean Guyader Date: Tue, 24 Mar 2009 16:59:05 +0000 (+0000) Subject: If the hid device is busy try again. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1395cf246593b826fa08d211d0a6db5a371b551c;p=xenclient%2Fioemu.git If the hid device is busy try again. --- diff --git a/hid-linux.c b/hid-linux.c index d091c54c..4ec6bdde 100644 --- a/hid-linux.c +++ b/hid-linux.c @@ -374,6 +374,9 @@ static int hid_linux_grab_devices(int grab, int *fd) if ((rc = ioctl(*fd, EVIOCGRAB, grab)) == -1) { char *er; + + if (errno == EBUSY) + continue; er = strerror(errno); DEBUG("ioctl(%d, EVOCGRAB) failed, %s\n", *fd, er); return 0;