Fifo: write line with \n

This is needed for eg. `read` to trigger
This commit is contained in:
Théophile Bastian 2022-04-17 18:39:23 +02:00
parent ff8a91599a
commit 11e5507ec9
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def fifo_hooks(payload, hook_name, hook_conf):
"""Fifo web handler -- write 1 to a unix fifo"""
try:
with open(hook_conf["fifo_path"], "w") as fifo:
fifo.write("1")
fifo.write("1\n")
except FileNotFoundError:
return "No such fifo", 500
except PermissionError: