(loop): shutdown one side of the TCP connection on EOF. From Brian A
May <bmay@dgs.monash.edu.au> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6700 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -118,6 +118,7 @@ loop (int s, int errsock)
|
||||
else if (ret == 0) {
|
||||
close (STDIN_FILENO);
|
||||
FD_CLR(STDIN_FILENO, &real_readset);
|
||||
shutdown (s, SHUT_WR);
|
||||
} else
|
||||
do_write (s, buf, ret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user