add initial udev watchdog

This commit is contained in:
chrys 2017-07-02 22:19:50 +02:00
parent 2f259d7bf4
commit da073404b1

View File

@ -293,7 +293,12 @@ class driver():
try: try:
del(self.uDevices[fd]) del(self.uDevices[fd])
except: 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): def hasIDevices(self):
if not self._initialized: if not self._initialized:
return False return False