From 43121900e96a0f779e110ed162c1db766eace4e6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 4 Mar 2013 17:09:52 +0100 Subject: [PATCH] splice: use fcntl(pfd[1], F_SETPIPE_SZ, 1048576); in splice2.c --- splice/splice2.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.34.1