X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/91eee5946ad6d033303abfe184085c87a283da29..31593dd6106cfef78fc88cbe9c831a51f00a4aa6:/connection.c diff --git a/connection.c b/connection.c index fc7c6667..1025c8fc 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