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 50424ab7c4766d79b54de9d5896773812ca85436..3b90d50a66540b1fdf94458dbf469ae20b3b4c3f 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);
        }