FDBLOCK(1)
β¨ NAME β¨
okay so bestie, fdblock is the icon that sets or unsets the O_NONBLOCK flag on a given file descriptor (which makes reading or writing non-blocking or blocking), then executes a program. this is the FDBLOCK(1) page from the General Commands Manual, and itβs lowkey a banger π
πΈ SYNOPSIS πΈ
fdblock [-n] fd prog...
π¦ DESCRIPTION π¦
fdblock makes the file descriptor number fd blocking, no matter what its previous state was. It then execs into prog with its arguments. periodt.
bestie, fdblock has no portable shell equivalent β like, there is literally no portable shell equivalent, so donβt go looking for a cute one-liner replacement π
π OPTIONS π
-nβ Non-blocking. Setsfdto non-blocking mode instead of blocking mode. If used onstdin(0) orstdout(1), this option will make a lot of command-line programs behave improperly, because most simple command-line programs only support blockingstdinandstdout. Make sure you know what you are doing. π
warn bestie β οΈ that-nwarning is not a drill: using it onstdin(0) orstdout(1) is exactly where things can get messy, because most simple command-line programs only support blockingstdinandstdout. Make sure you know what you are doing. π
π SEE ALSO π
go give these besties some love: emptyenv(1), envfile(1), exec(1), execline-cd(1), execline-umask(1), exit(1), export(1), fdclose(1), fdmove(1), fdreserve(1), fdswap(1), getcwd(1), getpid(1), heredoc(1), piperw(1), posix-cd(1), posix-umask(1), redirfd(1), trap(1), tryexec(1), unexport(1), wait(1), withstdinas(1)
This man page is ported from the authoritative documentation at: https://skarnet.org/software/execline/fdblock.html
π AUTHORS π
- Laurent Bercot
Alexis <flexibeast@gmail.com> (man page port)
mwah π source/version: Debian; date: February 14, 2021 β and thatβs the FDBLOCK(1) tea, bestie. periodt. π«Ά
π¦ where this page comes from
- nixpkgs unstable: execline 2.9.9.2
- nixpkgs unstable: execline-man-pages 2.9.9.1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms