OpenSSH 3.6.1p1 on NCR MP-RAS v4.3, several weird terminal problems

Darren Tucker dtucker at zip.com.au
Thu Apr 10 10:18:14 EST 2003


Jay Libove wrote:
> I tried the suggested config.h modification of
> 
>  #define STREAMS_PUSH_ACQUIRES_CTTY 1
> 
>  .. and it seems to have fixed all of the problems that I reported below
> (^C killing the session, logging out not fully closing the connection,
> lack of job control, and command line pipes being broken).

	This means that MP-RAS somehow re-acquires a controlling terminal after
forking and calling setsid() the first time.  In the Solaris case, a bug
in the pty driver caused it to happen when pushing a STREAMS module
(hence the #define name).  Linux/glibc5 has the same symptoms but it
doesn't have STREAMS so it must be acquiring it some other way (not
honouring O_NOCTTY maybe?)

	What can you tell us about MP-RAS?  Is it a SysV derivative?

	Should we just change the define to HAVE_BROKEN_O_NOCTTY.  We could
have configure do a run-tine test for it but it'd need a lot of the code
from pty_allocate().

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list