FDBLOCK(1)

NAME
fdblock - set or unset the O_NONBLOCK flag on a given file descriptor (which makes reading or writing non-blocking or blocking), then execute a program

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.

fdblock has no portable shell equivalent.

OPTIONS

-n  Non-blocking. Sets fd to non-blocking mode instead of blocking mode. If used on stdin (0) or stdout (1), this option will make a lot of command-line programs behave improperly, because most simple command-line programs only support blocking stdin and stdout. Make sure you know what you are doing.

SEE ALSO
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)