aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-02-12 21:30:12 +0100
committerAnton Khirnov <anton@khirnov.net>2022-02-12 21:30:49 +0100
commitfda2b732ad41129559b94f56a6c655068ed70f57 (patch)
tree9a32d90f5205c3a5e595f3f693d0def2f786a3a1
parent5a29d3e4c45bf58153ec1e617a1787b2311724dd (diff)
uinput_mng: create the control FIFO dir if it does not exist
-rwxr-xr-xuinput_mng1
1 files changed, 1 insertions, 0 deletions
diff --git a/uinput_mng b/uinput_mng
index e8e67a2..400755c 100755
--- a/uinput_mng
+++ b/uinput_mng
@@ -302,6 +302,7 @@ if not control_path:
# create the FIFO if it does not exist yet
if not os.path.exists(control_path):
logger.info('Creating control FIFO: %s', control_path)
+ os.makedirs(os.path.dirname(control_path), exist_ok = True)
os.mkfifo(control_path, mode = 0o600)
else:
st = os.stat(control_path)