(path: P)
| 19 | } |
| 20 | |
| 21 | fn create_fifo<P: AsRef<std::path::Path>>(path: P) -> anyhow::Result<()> { |
| 22 | // Remove the previous FIFO (if it exists) |
| 23 | remove_fifo(path.as_ref()); |
| 24 | |
| 25 | // Create the FIFO with RWX permissions for the owner |
| 26 | nix::unistd::mkfifo(path.as_ref(), nix::sys::stat::Mode::S_IRWXU)?; |
| 27 | |
| 28 | Ok(()) |
| 29 | } |
| 30 | |
| 31 | pub struct GenericFifo { |
| 32 | ctl_path: PathBuf, |
no test coverage detected