if (debug) log_d("do_dump: fstat(%d, ...) = %d", fd, rv);
static int do_dump(int fd, const char *name, struct request *r){	int rv;	rv = remove(name);	if (debug)		log_d("do_dump: remove(\"%s\") = %d", name, rv);	if (rv == -1) {		log_d("do_dump: cannot remove temporary file %s", name);		lerror("remove");		return -1;	}	rv = fcntl(fd, F_SETFD, FD_CLOEXEC);	if (debug)		log_d("do_dump: fcntl(%d, F_SETFD, FD_CLOEXEC = %d", fd, rv);	if (rv == -1) {		log_d("do_dump: failed to set FD_CLOEXEC flag !?!?!?");		lerror("fcntl");		return -1;	}	if (dump(fd) == -1) {		log_d("do_dump: failed to dump to file %s", name);		return -1;	}	rv = fstat(fd, &r->finfo);	if (debug)		log_d("do_dump: fstat(%d, ...) = %d", fd, rv);	if (rv == -1) {		lerror("fstat");		return -1;	}	return 0;}