Skip to content

Commit 54d2542

Browse files
committed
fix: sudden exit caused by pyinotify.Notifier.loop daemonize option
Reverts part of 84be118. The daemonize option os._exits the thread, causing applications using it (eg pt-miniscreen) to suddenly exit. We don't need to use the daemonize option since we are already running Notifier.loop in a daemon thread. https://github.com/seb-m/pyinotify/blob/0f3f8950d12e4a6534320153eed1a90a778da4ae/python3/pyinotify.py#L1316-L1317
1 parent 460879b commit 54d2542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pitop/miniscreen/oled/core/lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _monitor_lockfile(self):
3131
wm = WatchManager()
3232
wm.add_watch(self.lock_path, events_to_watch)
3333
self.notifier = Notifier(wm, eh)
34-
self.notifier.loop(daemonize=True)
34+
self.notifier.loop()
3535

3636
def start(self):
3737
self.stop()

0 commit comments

Comments
 (0)