Messages in this thread | | | Date | Wed, 16 Dec 1998 13:40:48 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: sendfile() documentation |
| |
On Wed, 16 Dec 1998, Chip Salzenberg wrote:
> According to Linus Torvalds: > > No. sendfile() was designed to do the right thing wrt nonblocking > > writes, so you can have a select() loop with sendfile() the same way > > you'd have it with read()+write(). > > Would you mean "the right thing wrt nonblocking _reads_", by any chance?
Nope, sendfile() always reads from the page cache, so the reads are never non-blocking. Obviously for a web server you'd do non-blocking reads too (to get the commands from the client), but sendfile() itself is not implicated in that end..
Linus
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |