add: close(recv_pipe[1]);
context: static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name){	int pid;	int status=0;	int recv_pipe[2];	extern int preserve_hard_links;	extern int am_daemon;	if (preserve_hard_links)		init_hard_links(flist);	if (pipe(recv_pipe) < 0) {		rprintf(FERROR,"pipe failed in do_recv\n");		exit(1);	}  	if ((pid=do_fork()) == 0) {		recv_files(f_in,flist,local_name,recv_pipe[1]);		if (am_daemon) report(-1);		exit_cleanup(0);	}	generate_files(f_out,flist,local_name,recv_pipe[0]);	waitpid(pid, &status, 0);	return status;}