Skip to content
Snippets Groups Projects
Commit 94291525 authored by deuce's avatar deuce
Browse files

Since sendfile() uses kernel memory, and when using smbfs, Synchronet kills

the kernel, attempt to blame sendfile() for everything and use the non
sendfile() based sendfilesocket() for FreeBSD.
parent 3379b277
Branches
Tags
No related merge requests found
......@@ -49,7 +49,8 @@
int sendfilesocket(int sock, int file, long *offset, long count)
{
/* sendfile() on Linux may or may not work with non-blocking sockets ToDo */
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) && 0
#warning FreeBSD sendfile may cause problems!
off_t total=0;
off_t wr=0;
int i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment