From: Stefan Metzmacher Date: Mon, 4 Mar 2013 16:09:52 +0000 (+0100) Subject: splice: use fcntl(pfd[1], F_SETPIPE_SZ, 1048576); in splice2.c X-Git-Url: http://git.samba.org/?p=metze%2Fmisc%2Fjunkcode.git;a=commitdiff_plain;h=43121900e96a0f779e110ed162c1db766eace4e6 splice: use fcntl(pfd[1], F_SETPIPE_SZ, 1048576); in splice2.c --- diff --git a/splice/splice2.c b/splice/splice2.c index 50424ab..3b90d50 100644 --- a/splice/splice2.c +++ b/splice/splice2.c @@ -32,6 +32,7 @@ int main(int argc, const char * const *argv) if (strcmp(argv[1], "splice") == 0) { pipe(pfd); + fcntl(pfd[1], F_SETPIPE_SZ, 1048576); } else { buffer = malloc(buffer_size); }