From 6e2dd755d0facab1e5b7e849e1c5e82ef27e0b5f Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Sat, 14 Oct 2023 10:41:30 -0700 Subject: [PATCH] Don't die if status FIFO exists --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 774c9e7..9a492c8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -318,7 +318,7 @@ void onReady() bool createFifo(std::string path) { auto result = mkfifo(path.c_str(), 0666); - if (result == 0) { + if ((result == 0) || (errno == EEXIST)) { auto fd = open(path.c_str(), O_CLOEXEC | O_NONBLOCK | O_RDONLY); if (fd < 0) { diesys("open status fifo reader");