Introduction
Introduction Statistics Contact Development Disclaimer Help
Code cleanup in xsplice(). - geomyidae - a small C-based gopherd (mirror)
git clone git://git.codemadness.org/geomyidae
Log
Files
Refs
README
LICENSE
---
commit c0cf9ade2605856d2aac986e5bfb429badc5c729
parent 2d93b6f04f44d94cc38dd1ef666867c0ca95574f
Author: Christoph Lohmann <[email protected]>
Date: Mon, 1 Aug 2022 13:44:56 +0200
Code cleanup in xsplice().
Diffstat:
M ind.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/ind.c b/ind.c
@@ -110,7 +110,7 @@ xsplice(int fd, int sock)
if (pipe(pipefd) < 0) {
perror("pipe");
- _exit(1);
+ exit(1);
}
do {
@@ -122,7 +122,8 @@ xsplice(int fd, int sock)
goto out;
}
- nwritten = splice(pipefd[0], NULL, sock, NULL, BLOCK_SIZE, SP…
+ nwritten = splice(pipefd[0], NULL, sock, NULL, BLOCK_SIZE,
+ SPLICE_F_MOVE | SPLICE_F_MORE);
if (nwritten < 0) {
ret = 1;
goto out;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.