mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 08:33:24 +00:00
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:
parent
e9d0dd0a1b
commit
599c73a35f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58882
@ -315,6 +315,8 @@ try_connect:
|
||||
if (pid < 0)
|
||||
err(1, "fork");
|
||||
}
|
||||
else
|
||||
(void)shutdown(rem, 1);
|
||||
|
||||
#ifdef KERBEROS
|
||||
#ifdef CRYPT
|
||||
|
Loading…
Reference in New Issue
Block a user