Any change of rsync using threads instead of fork?

Wayne Davison wayned at
Sat Dec 10 19:44:12 GMT 2005

On Fri, Dec 09, 2005 at 07:30:13PM +0000, Jamie Lokier wrote:
>    Indeed, if rsync is to remain portable, it must continue to be
>    compilable without threads too.

Just for the sake of completeness, I'll also add one more option: the
GNU pth library.  I configured it with both --enable-syscall-soft and
--enable-pthread, and it worked fine with my latest threaded test

I'm still thinking that the future of rsync will probably be to change
the receiver over to using a state-machine that gets triggered based on
incoming socket data, but in the meantime this threading code will allow
me to run some experimental protocol tests and (if tested enough to
ensure that it has no strange side-effects) should also allow some
systems that don't support a forked-receiver process to use the rsync
codebase plus the patch.


More information about the rsync mailing list