rsync process never quits! BUG? PROBLEM?

Polyanovskyi, Sasha sasha.polyanovskyi at
Tue Aug 17 01:55:52 GMT 2004

OK, I think this is an RSYNC bug!
When I start a single rsync process on the source machine, everything works
fine: on the destination machine the listening daemon exits after the
operation completes. When I start more than one rsync process on the source
machine, here is what happens:

*	on some of the destination machines not just one rsync daemon, but
two rsync.exe processes become running (even though only one of several
parallel rsync processes from the source machine deals with such a
destination machine) 

*	after the operation completes all the rsync.exe processes on such
destination machines remain running forever!

It seems as if parallel RSYNCs on the source machine get confused with one
another, sending unnecessary requests to daemons of some destinations
machines and never closing the connections from those requests
Please read below for more details if interested

-----Original Message-----
From: Polyanovskyi, Sasha [mailto:sasha.polyanovskyi at] 
Sent: Monday, August 16, 2004 5:11 PM
To: 'rsync at'
Subject: rsync process never quits!

Hi, people. Please help! 
I run rsync under inetd in Cygwin environment on Windows 2000. I start
several rsync processes each in a separate thread to sync a directory on my
machine and a corresponding directory on another computer, e.g. three RSYNCs
at the same time:

*	directories C:\aaa on and C:\bbb on 

*	directories C:\aaa on and C:\bbb on 

*	directories C:\aaa on and C:\bbb on 

Note that the sync could be between two directories on my machine... 

The command I use has the following structure:  rsync OPTIONS SRC
USER at HOST::DEST (even when both SRC and DST are the same machine, I access
DST with specifying its IP address).

Everything works technically, but here is the problem: if I start more than
one thread at a time with RSYNC process, it seemd to get confused on the
destination machine. After everything is completed I get a number of
rsync.exe processes on the destination machine running forever and never
exiting! I think they are daemons accepting connections, but I am not too
sure. Can anyone please tell me how to get rid of them. I certainly can
write a program that would run on every remote machine and kill the RSYNCs
that hang in the process list for more than <N> minutes, but surely this is
not a very elegant solution :-)

Thanks in advance 

-------------- next part --------------
HTML attachment scrubbed and removed

More information about the rsync mailing list