aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/inotify.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/plugins/inotify.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/inotify.py b/src/plugins/inotify.py
index f92db48..84b24e9 100644
--- a/src/plugins/inotify.py
+++ b/src/plugins/inotify.py
@@ -51,6 +51,13 @@ class Inotify:
command.append('-e')
command.append(event)
command += list(arguments)
+ if 'PATH' in os.environ:
+ path = os.environ['PATH'].split('.')
+ for p in path:
+ p += '/pdeath'
+ if os.access(p, os.X_OK, effective_ids = True):
+ command = [p, 'HUP'] + command
+ break
def start():
with LineReader(spawn(*command)) as reader:
while True: