X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0c515f17c44344813e8949fbb684b357ad70cfdf..740819ef7b3b96451e16b2fa3891d46cfc73ec64:/connection.c diff --git a/connection.c b/connection.c index fc7c6667..ec726075 100644 --- a/connection.c +++ b/connection.c @@ -19,59 +19,6 @@ /* support the max connections option */ #include "rsync.h" -int yield_connection(char *fname, int max_connections) -{ - int fd, i; - pid_t mypid=getpid(), pid=0; - - if (max_connections <= 0) - return 1; - - fd = open(fname,O_RDWR); - if (fd == -1) { - rprintf(FERROR,"Couldn't open lock file %s (%s)\n",fname,strerror(errno)); - return 0; - } - - if (!lock_file(fd)) { - rprintf(FERROR,"failed to lock %s\n", fname); - close(fd); - return 0; - } - - /* find the right spot */ - for (i=0;i