Jivin [EMAIL PROTECTED] lays it down ... > Selon David McCullough <[EMAIL PROTECTED]>: > > > > > Jivin [EMAIL PROTECTED] lays it down ... > > > Hi all, > > > > > > I am looking to use rsync with uCLinux on the distribution from 2006 08 > > > 03. > > > > > > When i try to use update file on uCLinux with file on my computer, the > > > application does nothing. > > > > > > Has someone use it successfully with uCLinux ? > > > maybe i forgot something to validate in the kernel ? > > > > > > when i take a look on the code i see that there is some fork call that i > > have > > > replaced by vfork, but i did not see any call to an execv, is it correct ? > > > > > > Thanks for all information that you can give to me. > > > > There was a small change to inetd that may have broken rsync IIRC. > > > > Edit user/inetd/inetd.c and find the following, and re-enable the code: > > > > #if 0 > > /* Don't redirect stderr to stdout */ > > if (fd != 2) > > dup2(fd, 2); > > #endif > > > > Cheers, > > Davidm > > > > Thanks David, > > i try it but it is not working. > I can see rsync that is launched, but it don't any synchronization, the > computer > wait, and it's last message is "send_files starting". > > I think that there is a problem when rsync use fork that i have replace with a > vfork. > > I think when vfork is used, the parent process is not called until the child > called _exit or exec. But when i take a look on rsync code where the vfork is > done i don't see any call to exec or exit. > exit is called in a signal handler. The signal is send by the parent to the > child, but is the parent is not called until exit or exec is done, the signal > is > never send and rsync does nothing. > > i have tested the other way : from uclinux to computer and the command is > written on the computer's shell. > In this way the synchronization is correct.
Ok, sounds fair, have never used it on a !MMU system, goof luck ;-) Cheers, Davidm -- David McCullough, [EMAIL PROTECTED], Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
