| Code cleanup in xsplice(). - geomyidae - A small C-based gopherd. | |
| git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| 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; |