Update TODO

This commit is contained in:
chrys87 2016-07-11 15:26:19 +02:00 committed by GitHub
parent 2c1f7af5e8
commit 36fa78c5d2

3
TODO
View File

@ -17,8 +17,9 @@ class Identity(pyinotify.ProcessEvent):
wm = pyinotify.WatchManager() wm = pyinotify.WatchManager()
notifier = pyinotify.Notifier(wm, default_proc_fun=Identity(), timeout=5) notifier = pyinotify.Notifier(wm, default_proc_fun=Identity(), timeout=5)
wm.add_watch('/sys/devices/virtual/tty/tty0/active', pyinotify.INCLOSE_WRITE)
for file in list(glob.glob('/dev/vcsa[0-64]')): for file in list(glob.glob('/dev/vcsa[0-64]')):
wm.add_watch(file, pyinotify.IN_CLOSE_WRITE, auto_add=True) wm.add_watch(file, pyinotify.IN_CLOSE_WRITE)
print(file) print(file)
try: try: