a rsh/rshd problem with SO_LINGER

Dave Truesdell davet%tp4 at rand-unix.arpa
Wed Nov 27 00:01:51 AEST 1985


	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 at rand-unix
UUCP/usenet:
    decvax --- 
    hermix ---|
    harpo ----|- randvax!davet
    ttidca ---|
    ucla-cs --|
    vortex ---



More information about the Comp.unix.wizards mailing list