Re: Debian bug #128632 fork

2002-02-18 Thread Martin Pool
Why the sleep() call? On 16 Feb 2002, Colin Walters [EMAIL PROTECTED] wrote: Index: socket.c === RCS file: /cvsroot/rsync/socket.c,v retrieving revision 1.74 diff -u -u -r1.74 socket.c +++ socket.c 16 Feb 2002 23:08:47 -

Re: Debian bug #128632 fork

2002-02-18 Thread Wayne Davison
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); +

Re: Debian bug #128632 fork

2002-02-18 Thread Martin Pool
On 18 Feb 2002, Wayne Davison [EMAIL PROTECTED] wrote: On Mon, 18 Feb 2002, Martin Pool wrote: Why the sleep() call? I guess the point is that the fork() probably failed because the server is overloaded, and therefore there is no point trying to accept another connection again immediately. I

Re: Debian bug #128632 fork

2002-02-18 Thread Colin Walters
On Mon, 2002-02-18 at 17:53, Martin Pool wrote: On 18 Feb 2002, Wayne Davison [EMAIL PROTECTED] wrote: On Mon, 18 Feb 2002, Martin Pool wrote: Why the sleep() call? I guess the point is that the fork() probably failed because the server is overloaded, and therefore there is no point