Fix the mkfifo call on Linux and add a test to avoid regression
This commit is contained in:
@@ -287,7 +287,7 @@ impl Pal for Sys {
|
||||
}
|
||||
|
||||
fn mkfifo(path: &CStr, mode: mode_t) -> c_int {
|
||||
e(unsafe { syscall!(MKNODAT, AT_FDCWD, path.as_ptr(), mode, 0) }) as c_int
|
||||
e(unsafe { syscall!(MKNODAT, AT_FDCWD, path.as_ptr(), mode | S_IFIFO, 0) }) as c_int
|
||||
}
|
||||
|
||||
unsafe fn mmap(
|
||||
|
||||
Reference in New Issue
Block a user