Hello there, I am trying to build OpenSSH on the above (very old) version of unix. With a bit of hacking, I have managed to get everything to compile and run. Scp works fine however when I log in via ssh I end up with a session without a controlling terminal. I have followed the code in pty_make_controlling_tty and it seems to go as follows: 1. Starts with a controlling tty. 2. setsid works, no controlling tty. 3. open of tty works, however it doesn't become the controlling tty. 4. open of /dev/tty fails. I don't have a huge experience of pseudo ttys or controlling ttys but it looks to me like point 3 fails because there is already an open file handle pointing to the same device. As an aside, Dynix has a function called fvhangup (virtually hangup the specified controlling terminal) but if I insert a call to this then all slave terminals are hung up which seems to cause the master to close. Can anyone offer any hints on how I can persuade my session to pick up a controlling terminal? Regards, Richard Dickens ----------------------------------------------------------------- Visit our Internet site at http://www.reuters.com To find out more about Reuters Products and Services visit http://www.reuters.com/productinfo Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.
Richard Dickens wrote:> Hello there, > > I am trying to build OpenSSH on the above (very old) version of unix.[...]> Can anyone offer any hints on how I can persuade my session to pick up a > controlling terminal?Try "./configure --with-cflags=-DNEED_SETPRGP" That seems to help with controlling ttys on oldish Unixes. If it works then please let us know a) that it does and b) what the output of ./config.guess is on your system so we can update configure... -- 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.
Darren, NEED_SETPRGP didn't make any difference. Still says "open /dev/tty failed - could not set controlling tty: No such device or address". Anything else I can try? Regards, Richard Dickens -----Original Message----- From: Darren Tucker [mailto:dtucker at zip.com.au] Sent: 11 August 2005 15:35 To: Richard Dickens Cc: openssh-unix-dev at mindrot.org Subject: Re: Porting to Dynix 4.1.3... Richard Dickens wrote:> Hello there, > > I am trying to build OpenSSH on the above (very old) version of unix.[...]> Can anyone offer any hints on how I can persuade my session to pick up> a controlling terminal?Try "./configure --with-cflags=-DNEED_SETPRGP" That seems to help with controlling ttys on oldish Unixes. If it works then please let us know a) that it does and b) what the output of ./config.guess is on your system so we can update configure... -- 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. ----------------------------------------------------------------- Visit our Internet site at http://www.reuters.com To find out more about Reuters Products and Services visit http://www.reuters.com/productinfo Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Reuters Ltd.