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");