You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
322 B

diff --git a/rshd/rshd.c b/rshd/rshd.c
index 546b908..9b0024e 100644
--- a/rshd/rshd.c
+++ b/rshd/rshd.c
@@ -212,6 +212,7 @@ static void stderr_parent(int sock, int pype, int pid) {
if (cc <= 0) {
shutdown(sock, 2);
FD_CLR(pype, &readfrom);
+ close(sock);
guys--;
}
else write(sock, buf, cc);