Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

File.mkfifo

(::string | ::_ToPath file_name, ?::int mode) -> 0
File.mkfifo(file_name, mode=0666) => 0

Creates a FIFO special file with name file_name. mode specifies the FIFO’s permissions. It is modified by the process’s umask in the usual way: the permissions of the created file are (mode & ~umask).

See also .lutime .mtime .lstat .new also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0