[cs631apue] telnet not detecting socket close

jphillip jphillip at stevens.edu
Sat Nov 10 18:46:05 EST 2012


Thanks Tom, that was exactly the problem.  I closed the socket in the 
parent and things now work as expected.

On Sat, 10 Nov 2012 17:43:00 -0500, tparisi wrote:
> I actually encountered the same problem.  It took me a lot of time to
> figure out you have to make sure you close the child's socket file
> descriptor in both the parent and the child if you open the client's
> socket in the parent.  Otherwise the socket remains open to the 
> parent
> and telnet doesn't report the closure to the client side because
> technically the parent can still write to it.  It may be a different
> problem for you but I figured I'd throw out my experience and
> hopefully it helps.
> Tom
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs631apue



More information about the cs631apue mailing list