recvmmsg.2: Describe timeout bug

See FIXME https://bugzilla.kernel.org/show_bug.cgi?id=75371
and http://thread.gmane.org/gmane.linux.man/5677

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-05-03 12:36:39 +02:00
parent f7a858b447
commit dfc0036345
1 changed files with 13 additions and 1 deletions

View File

@ -111,7 +111,8 @@ argument points to a
.I struct timespec
(see
.BR clock_gettime (2))
defining a timeout (seconds plus nanoseconds) for the receive operation.
defining a timeout (seconds plus nanoseconds) for the receive operation
.RI ( "but see BUGS!" ).
(This interval will be rounded up to the system clock granularity,
and kernel scheduling delays mean that the blocking interval
may overrun by a small amount.)
@ -263,6 +264,17 @@ main(void)
exit(EXIT_SUCCESS);
}
.fi
.SH BUGS
The
.I timeout
argument does not work as intended.
.\" FIXME https://bugzilla.kernel.org/show_bug.cgi?id=75371
.\" http://thread.gmane.org/gmane.linux.man/5677
The timeout is checked only after the receipt of each datagram,
so that if up to
.I vlen\-1
datagrams are received before the timeout expires,
but then no further datagrams are received, the call will block forever.
.SH SEE ALSO
.BR clock_gettime (2),
.BR recvmsg (2),