36 fs::path path_dir_parent = path_file_fifo.parent_path();
38 return_if(not Try(fs::exists(path_dir_parent)) and not Try(fs::create_directories(path_dir_parent))
39 , Error(
"E::Failed to create upper directories '{}' for fifo '{}'", path_dir_parent, path_file_fifo)
42 if (Try(fs::exists(path_file_fifo)))
44 Try(fs::remove(path_file_fifo));
47 return_if(::mkfifo(path_file_fifo.c_str(), 0666) < 0
48 , Error(
"E::Failed to create fifo '{}' with error '{}'", path_file_fifo, strerror(errno))
50 return path_file_fifo;