Second part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
commit41b0d21a010914ebbce59a6c4d8d2457106bb3d4
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:23:00 +0000 (30 20:23 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:29:15 +0000 (23 21:29 +0100)
treee88b16560bb18d2e13122512196d6d4f95e0910c
parentbbaf2909e7295fe1e4d91d3d5c485dec1cff4531
Second part of fix for bug #8679 - recvfile code path using splice() on Linux leaves data in the pipe on short write.

Split out the functionality of drain_socket() into a separate
function from default_sys_recvfile().
(cherry picked from commit a5715420e37b98038fe8f2c3028e4c6938400eed)
(cherry picked from commit 7924e459b6677ba3500afff4b78f797e1e0ad83d)
source3/lib/recvfile.c