diff options
Diffstat (limited to 'bench.c')
-rw-r--r-- | bench.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -61,6 +61,10 @@ main(void) } pipe(rw); +#if 0 + if (fcntl(*rw, F_SETPIPE_SZ, 1 << 20) < 0) + return perror("fcntl F_SETPIPE_SZ"), 1; +#endif if (!fork()) { close(rw[1]); while (read(rw[0], buf, n) > 0); @@ -79,6 +83,10 @@ main(void) } pipe(rw); +#if 0 + if (fcntl(*rw, F_SETPIPE_SZ, 1 << 20) < 0) + return perror("fcntl F_SETPIPE_SZ"), 1; +#endif if (!fork()) { close(rw[1]); while (read(rw[0], buf, n) > 0); |