splice: use fcntl(pfd[1], F_SETPIPE_SZ, 1048576); in splice2.c
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Mar 2013 16:09:52 +0000 (17:09 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 4 Mar 2013 16:09:52 +0000 (17:09 +0100)
splice/splice2.c

index 50424ab..3b90d50 100644 (file)
@@ -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);
        }