Problem calling rsync from java on OSX

Wayne Davison wayned at
Fri Nov 19 16:42:34 GMT 2004

On Thu, Nov 18, 2004 at 11:52:30PM -0600, Drew Lippolt wrote:
> can i force daemon mode, even if the rsync process thinks it should be 
> running out of inet?

You might try adding "</dev/tty", "</dev/null", or something like that.
Rsync is calling getsockopt() on the STDIN file descriptor to ask for
the socket type, and you need to make sure that the processes's STDIN is
something that will cause that function to return an error.  If changing
the stdin doesn't work, you'll need to figure out why getsockopt() is
misbehaving -- perhaps it is returning success but the values returned
are different from what a real socket would return, so the is_a_socket()
code could be modified to work with the incompatible getsockopt().


More information about the rsync mailing list