rsync sometimes freezes during execution if it is run over ssh.

rsync turns on blocking I/O mode if remote shell command is rsh
(ie. matched RSYNC_RSH) to work around some broken rsh implementations
on other platforms.

The submitter of the rsh->ssh patches overloaded RSYNC_RSH for ssh.
That turns out to be a Wrong Thing.  This change implements the parallel
RSYNC_SSH.

PR:		26376
Submitted by:	adrian
This commit is contained in:
David E. O'Brien 2001-04-08 15:48:29 +00:00
parent a2f03d897f
commit b66527ab46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41068
2 changed files with 12 additions and 4 deletions

View file

@ -0,0 +1,5 @@
--- main.c.orig Tue Sep 5 19:46:43 2000
+++ main.c Sat Apr 7 23:32:25 2001
@@ -134 +134 @@
- cmd = RSYNC_RSH;
+ cmd = RSYNC_SSH;

View file

@ -1,5 +1,8 @@
--- rsync.h.orig Sat Aug 19 06:10:39 2000
+++ rsync.h Thu Mar 8 03:31:33 2001
@@ -75 +75 @@
-#define RSYNC_RSH "rsh"
+#define RSYNC_RSH "ssh"
+++ rsync.h Sat Apr 7 23:31:00 2001
@@ -75,4 +75,5 @@
#define RSYNC_RSH "rsh"
#endif
+#define RSYNC_SSH "ssh"
#include <sys/types.h>