so-called-hang-on-exit

Jani Jaakkola jjaakkol at cs.Helsinki.FI
Thu Aug 8 06:02:39 EST 2002


On Tue, 6 Aug 2002 Nicolas.Williams at ubsw.com wrote:

> 
> I meant, what is the difference in behaviour in technical terms.
> 
> E.g., "the BSD pty master gets EOF as soon as all processes in the pty's
> controlling process group exit, whereas on Linux the pty master EOFs
> only when there are no open file descriptors for the pty."

Thats it.

> And what server-side, user-level heuristic could "correct" for this
> difference?

I don't know about "correct", but with the patches me and Frank Cusack 
have sent (however I haven't tested Franks version, since I am still happy 
with my own) we _do_ get exactly the same behaviour in OpenBSD and 
Linux (including the data loss). So if you are wondering how to do it, 
read the patches.

I would be happy know, if someone can prove otherwise, with any OS where 
openssh runs and uses ptys. Providing an example shell script would be 
nice, like I did.  

- Jani




More information about the openssh-unix-dev mailing list