Page MenuHomeFreeBSD

D47447.diff
No OneTemporary

D47447.diff

diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c
--- a/sys/compat/linux/linux_socket.c
+++ b/sys/compat/linux/linux_socket.c
@@ -2538,6 +2538,13 @@
current_offset = *offset;
error = fo_sendfile(fp, out, NULL, NULL, current_offset, count,
sbytes, 0, td);
+ if (error == EAGAIN) {
+ /*
+ * The socket is non-blocking and we didn't finish sending.
+ * Squash the error, since that's what Linux does.
+ */
+ error = 0;
+ }
if (error == 0) {
current_offset += *sbytes;
if (offset != NULL)

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 9:45 PM (15 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14476036
Default Alt Text
D47447.diff (542 B)

Event Timeline