Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Fix create_channel_named_pipe on unix, wrong mod

Ilyaffe3e9a8e681
diff --git a/crates/utils/src/lib.rs b/crates/utils/src/lib.rs
index 79658364a..188445e91 100644
--- a/crates/utils/src/lib.rs
+++ b/crates/utils/src/lib.rs
@@ -92,7 +92,7 @@ where
let _ = std::fs::remove_file(&pipe_path);
// Make FIFO if not existing
- stat::mkfifo(&pipe_path, stat::Mode::S_IRWXU)
+ nix::unistd::mkfifo(&pipe_path, stat::Mode::S_IRWXU)
.expect("Failed to create a Unix FIFO with mkfifo()");
tokio::spawn(async move {