tCode cleanup in xsplice(). - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae) (HTM) git clone git://r-36.net/geomyidae (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit c0cf9ade2605856d2aac986e5bfb429badc5c729 (DIR) parent 2d93b6f04f44d94cc38dd1ef666867c0ca95574f (HTM) Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 1 Aug 2022 13:44:56 +0200 Code cleanup in xsplice(). Diffstat: ind.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- (DIR) diff --git a/ind.c b/ind.c t@@ -110,7 +110,7 @@ xsplice(int fd, int sock) if (pipe(pipefd) < 0) { perror("pipe"); - _exit(1); + exit(1); } do { t@@ -122,7 +122,8 @@ xsplice(int fd, int sock) goto out; } - nwritten = splice(pipefd[0], NULL, sock, NULL, BLOCK_SIZE, SPLICE_F_MOVE | SPLICE_F_MORE); + nwritten = splice(pipefd[0], NULL, sock, NULL, BLOCK_SIZE, + SPLICE_F_MOVE | SPLICE_F_MORE); if (nwritten < 0) { ret = 1; goto out;