git.samba.org
/
metze
/
misc
/
junkcode.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d2a9533
)
splice: use fcntl(pfd[1], F_SETPIPE_SZ, 1048576); in splice2.c
author
Stefan Metzmacher
<metze@samba.org>
Mon, 4 Mar 2013 16:09:52 +0000
(17:09 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 4 Mar 2013 16:09:52 +0000
(17:09 +0100)
splice/splice2.c
patch
|
blob
|
history
diff --git
a/splice/splice2.c
b/splice/splice2.c
index 50424ab7c4766d79b54de9d5896773812ca85436..3b90d50a66540b1fdf94458dbf469ae20b3b4c3f 100644
(file)
--- 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);
if (strcmp(argv[1], "splice") == 0) {
pipe(pfd);
+ fcntl(pfd[1], F_SETPIPE_SZ, 1048576);
} else {
buffer = malloc(buffer_size);
}
} else {
buffer = malloc(buffer_size);
}