Author: Jeff Johnson --- nc/netcat.c.halfclose Fri Aug 11 12:59:56 2000 +++ nc/netcat.c Fri Aug 11 13:01:15 2000 @@ -1220,6 +1220,7 @@ if (rr <= 0) { /* at end, or fukt, or ... */ FD_CLR (0, ding1); /* disable and close stdin */ close (0); + shutdown(fd, 1); /* no more sending from us */ } else { rzleft = rr; zp = bigbuf_in;