Debian bug #128632 && fork

Wayne Davison wayned at users.sourceforge.net
Tue Feb 19 09:46:16 EST 2002


On Mon, 18 Feb 2002, Martin Pool wrote:
> Why the sleep() call?

Also, why close(fd) twice?

> > +		} else if (pid < 0) {
> > +			rprintf(FERROR, "could not create child process: %s\n",
> > +				strerror(errno));
> > +			close(fd);
> > +			sleep(2);
> >  		}
> >
> >  		close(fd);

..wayne..





More information about the rsync mailing list