2000-09-18-14:21:52 Tom Messmer:
> Not sure why, but when I try to start rsync in daemon mode it seems to
> startup with no errors, however, when trussing I get:
>
> getsockopt(0, SOL_SOCKET, SO_TYPE, 0xbffff960, 0xbffff964) = -1 ENOTSOCK (Socket
>operation on non-socket)
> fork() = 12464
> _exit(0) = ?
Use the option (-f?) to follow the process across forks. rsync is
checking to see if its stdin is a socket; if it were, it'd assume it
was running under inetd and talk the daemon protocol directly to its
stdin/stdout socket. Since it's being invoked from a cmdline, it's
forking, and the child is trying to set itself up as the daemon. The
child will be the bit that's failing, if anything is. So use the
truss option to follow across forks.
-Bennett
PGP signature