Fix a bug in rsh that caused the remote process to hang waiting on

input even if the '-n' flag to rsh is used.  The write side of the
socket should be closed to allow the remote process to see EOF.

Submitted by:  Brad Chisholm <sasblc@unx.sas.com>
This commit is contained in:
Brian S. Dean 2000-04-01 00:14:50 +00:00
parent e9d0dd0a1b
commit 599c73a35f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58882

View File

@ -315,6 +315,8 @@ try_connect:
if (pid < 0)
err(1, "fork");
}
else
(void)shutdown(rem, 1);
#ifdef KERBEROS
#ifdef CRYPT