Do not exit in splice when pipe is unsuccessfull. - geomyidae - A small C-based gopherd.
 (HTM) git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b8f2f9e71128445ed61141bb7eec1d241790fb43
 (DIR) parent c0cf9ade2605856d2aac986e5bfb429badc5c729
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon,  1 Aug 2022 13:45:52 +0200
       
       Do not exit in splice when pipe is unsuccessfull.
       
       Diffstat:
         M ind.c                               |       6 ++----
       
       1 file changed, 2 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/ind.c b/ind.c
       @@ -108,10 +108,8 @@ xsplice(int fd, int sock)
                ssize_t nread, nwritten;
                off_t in_offset = 0;
        
       -        if (pipe(pipefd) < 0) {
       -                perror("pipe");
       -                exit(1);
       -        }
       +        if (pipe(pipefd) < 0)
       +                return -1;
        
                do {
                        nread = splice(fd, &in_offset, pipefd[1], NULL,