]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufs
authorphk <phk@FreeBSD.org>
Sun, 3 Feb 2008 15:54:41 +0000 (15:54 +0000)
committerphk <phk@FreeBSD.org>
Sun, 3 Feb 2008 15:54:41 +0000 (15:54 +0000)
commit13132840a1ae0f962ec527dbcb06f4ab9ff6e629
treee8aa792bfeae3fe74b00888ee40dba346efe1d5b
parentf42ebbd1b7ffd44040dfa547061f44f206a30e0e
Give sendfile(2) a SF_SYNC flag which makes it wait until all mbufs
referencing the files VM pages are returned from the network stack,
making changes to the file safe.

This flag does not guarantee that the data has been transmitted to the
other end.
lib/libc/sys/sendfile.2
sys/kern/uipc_syscalls.c
sys/sys/socket.h