pipe.7: Clarify that I/O signalling requires use of both F_SETOWN and O_ASYNC

Reported-by: Jason Vas Dias <jason.vas.dias@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-03-11 07:55:20 +01:00
parent 7255c7c0df
commit 98faa645ea
1 changed files with 4 additions and 3 deletions

View File

@ -227,10 +227,11 @@ Setting the
.B O_ASYNC
flag for the read end of a pipe causes a signal
.RB ( SIGIO
by default) to be generated when new input becomes available on the pipe
(see
by default) to be generated when new input becomes available on the pipe.
The target for delivery of signals must be set using the
.BR fcntl (2)
for details).
.B F_SETOWN
command.
On Linux,
.B O_ASYNC
is supported for pipes and FIFOs only since kernel 2.6.