X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fproc.c;h=2e61e92501581bff2122b1920d60bdca6683827f;hb=43c58ba25e47635c8f44e6b1cbda9247219a16b5;hp=957cfce7becb6d100b42bc807df759db10fda925;hpb=992ce9ef8adb25fdcc47264187450a3edb287167;p=ashd.git diff --git a/lib/proc.c b/lib/proc.c index 957cfce..2e61e92 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -84,7 +84,7 @@ int sendfd(int sock, int fd, char *data, size_t datalen) int recvfd(int sock, char **data, size_t *datalen) { int ret, fd; - char *buf, cbuf[1024];; + char *buf, cbuf[1024]; struct msghdr msg; struct cmsghdr *cmsg; struct iovec bufvec; @@ -163,6 +163,5 @@ pid_t stdforkserve(char **argv, struct hthead *req, int fd) flog(LOG_WARNING, "could not exec child program %s: %s", argv[0], strerror(errno)); exit(127); } - close(fd); return(pid); }