Second part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:23:00 +0000 (20:23 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 4 Jan 2012 20:30:36 +0000 (21:30 +0100)
commit1076d0d0491ca9d988c8095514838975e6fce4ec
tree5103eaa3b9eedd86663d58788dabc70b08adbec9
parente1cbc6b4ac55d2cdb55bcfa4dbcd667cedf6ffb2
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