From da073404b1a3000375cb3101c9f1c8dd9e7e9ea5 Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 2 Jul 2017 22:19:50 +0200 Subject: [PATCH] add initial udev watchdog --- src/fenrir/inputDriver/evdevDriver.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fenrir/inputDriver/evdevDriver.py b/src/fenrir/inputDriver/evdevDriver.py index 32dfad64..99d25af0 100644 --- a/src/fenrir/inputDriver/evdevDriver.py +++ b/src/fenrir/inputDriver/evdevDriver.py @@ -293,7 +293,12 @@ class driver(): try: del(self.uDevices[fd]) except: - pass + pass + self.iDevicesFD = multiprocessing.Array('i', len(self.iDevices)) + i = 0 + for fd in self.iDevices: + self.iDevicesFD[i] = fd + i +=1 def hasIDevices(self): if not self._initialized: return False