Code cleanup in xsplice(). - geomyidae - A small C-based gopherd. HTML git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit c0cf9ade2605856d2aac986e5bfb429badc5c729 DIR parent 2d93b6f04f44d94cc38dd1ef666867c0ca95574f HTML Author: Christoph Lohmann <20h@r-36.net> 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(-) --- DIR 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, 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;