MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / create_fifo

Function create_fifo

src/executor/shared/fifo.rs:21–29  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

19}
20
21fn 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
31pub struct GenericFifo {
32 ctl_path: PathBuf,

Callers 2

newMethod · 0.85
openMethod · 0.85

Calls 1

remove_fifoFunction · 0.85

Tested by

no test coverage detected