Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!davet%tp4@rand-unix.arpa From: davet%tp4@rand-unix.arpa (Dave Truesdell) Newsgroups: net.unix-wizards Subject: a rsh/rshd problem with SO_LINGER Message-ID: <69@brl-tgr.ARPA> Date: Tue, 26-Nov-85 09:01:51 EST Article-I.D.: brl-tgr.69 Posted: Tue Nov 26 09:01:51 1985 Date-Received: Thu, 28-Nov-85 04:35:27 EST Sender: news@brl-tgr.ARPA Lines: 30 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 ---