davet%tp4@rand-unix.arpa (Dave Truesdell) (11/26/85)
We are having a minor problem with rsh. It seems that output from a remote shell is being lost after stdin to "rsh" has reached EOF. Looking through the code I find that when rsh reads an EOF on stdin it calls shutdown(2) to close down the outbound side of the connection to the remote process. All is well until after the timeout specified by SO_LINGER expires. After this all further output is lost. (Actually, it appears that all further reads produce newlines, regardless of what is being sent.) Has anyone out there {seen,fixed} this behaviour? It would seem that all of the remote output, should be sent correctly. Am I wrong in assuming this? By the way, This shows up our vax 7{50,80,85}'s running 4.2bsd. David A. Truesdell Programmer/Analyst ARPAnet: davet%tp4@rand-unix UUCP/usenet: decvax --- hermix ---| harpo ----|- randvax!davet ttidca ---| ucla-cs --| vortex ---