X-Spam-Check-By: sourceware.org Message-ID: <9a6449f40707281509x6915310ax34f00e12f40438cc@mail.gmail.com> Date: Sat, 28 Jul 2007 18:09:29 -0400 From: "Joel Harrison" To: cygwin AT cygwin DOT com Subject: rysnc under cygwin hangs and doesn't clean up its processes - please help - cygwin 1.5.24-2, In-Reply-To: <9a6449f40707281503o191575bfr1dc42cfaf842aa3b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9a6449f40707281503o191575bfr1dc42cfaf842aa3b AT mail DOT gmail DOT com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Background - I'm trying to turn off my linux box and save some electricity by using rsync on windows to do my geographically redundant backup to my ISP (site5 - $5/110GB/mo) ... I'd rather not load up a resource hog VM to do it if I can avoid that... even DSL would be more of a resource hog than cygwin. Technical: rsync on cygwin always hangs. Works fine on CentOS. I've been looking into this issue for 5-10 hours so far. I can scp/ssh fine to the target with ssh keys installed or not, only rsync hangs. I read about piping issues in rsync on cygwin from years back, but it seems to me like perhaps they are not resolved? Just my hypothesis. 17:28:34 [~] $ rsync -vvvvvvvvvv -a ReleaseNotes.zip joe AT domain DOT com: cmd= machine=domain.com user=joe path= cmd=ssh -l joe domain.com rsync --server -vvvvvvvvvvlogDtpr . opening connection using ssh -l joe domain.com rsync --server -vvvvvvvvvvlogDtpr . <^^^^^^----Freezes until control-c is pressed, then spews below error _exit_cleanup(code=20, file=/home/lapo/packaging/tmp /rsync-2.6.6/rsync.c, line=163): entered rsync error: received SIGUSR1 or SIGINT (code 20) at /home/lapo/packaging/tmp/rsync-2.6.6/rsync.c(163) _exit_cleanup(code=20, file=/home/lapo/packaging/tmp/rsync- 2.6.6/rsync.c, line=163): about to call exit(20) Doesn't seem to make a difference if I add -e ssh. (seems to use ssh by default?) ------------------------- Related issue - rsync and ssh both hang threads indefinitely and I can't kill them in cygwin. (see below.. rsync threads show only in taskman) 17:48:15 [~] $ ps -e PID PPID PGID WINPID TTY UID STIME COMMAND 3408 1 3408 3408 ? 18 14:34:51 /usr/bin/cygrunsrv 1588 3408 1588 3008 ? 18 14:34:51 /usr/sbin/sshd I 208 1 208 208 con 1003 16:56:01 /usr/bin/bash 3484 1 3484 3484 0 1003 17:21:16 /cygdrive/c/Program Files/cygwin/bin/rxvt 3960 3484 3960 2200 1 1003 17:21:16 /usr/bin/bash 2768 1 2760 3204 1 1003 17:21:24 /usr/bin/ssh 4032 1 3872 2712 1 1003 17:21:34 /usr/bin/ssh 2500 1 2932 3244 1 1003 17:27:57 /usr/bin/ssh 3788 1 2360 3164 1 1003 17:28:32 /usr/bin/ssh 3652 1 3216 2356 1 1003 17:28:38 /usr/bin/ssh 4040 3960 4040 260 1 1003 17:48:16 /usr/bin/ps 17:48:16 [~] $ kill 2768 bash: kill: (2768) - Resource temporarily unavailable 17:48:59 [~] $ kill -f 2768 bash: kill: f: invalid signal specification 17:49:02 [~] $ kill -9 2768 bash: kill: (2768) - Resource temporarily unavailable -------------- Thanks for any help! --Joel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/