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
@ -315,6 +315,8 @@ try_connect:
|
||||
if (pid < 0)
|
||||
err(1, "fork");
|
||||
}
|
||||
else
|
||||
(void)shutdown(rem, 1);
|
||||
|
||||
#ifdef KERBEROS
|
||||
#ifdef CRYPT
|
||||
|
Loading…
x
Reference in New Issue
Block a user