Don't die if status FIFO exists
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user