On Fri, Feb 12, 1999 at 09:11:58AM +0100, J.H.M. Dassen wrote:
> On Fri, Feb 12, 1999 at 03:21:38 +0100, Rafal Maszkowski wrote:
> > ioctl(newtty, TIOCSCTTY, NULL) in tty.c fails - looks like there is no
> > TIOCSCTTY on Solaris, at least 2.5.1 . I don't know what to use here
> > instead. I commented out this ioctl so the code compiles but lshd says
> > pty_setctty: Error disconnecting from controlling tty.
> On Mon, Feb 08, 1999 at 21:09:39 +0100, Niels Möller wrote:
> > Balazs Scheidler <[EMAIL PROTECTED]> writes:
> > > On Sat, 6 Feb 1999, Keresztfalvi Gabor wrote:
> > > > The call to tty_setctty in server.c is too late in the code... In
> > > > make_pty there is in[0]=pty->slave, so if we close(in[0]) prior to
> > > > calling tty_setctty(pty->slave) then we'll get a errno=9 (bad file
> > > > handler).
> > Hmm, I think that some earlier version used tty_setctty(STDIN_FILENO), but
> > I changed it in an attempt to make the code a little clearer. Undoing that
> > change should solve the problem, I think.
> Rafal, this might be the explanation for your problem; can you try if this
> makes a difference?
Where? I changed server.c:
if (using_pty) {
/* tty_setctty(session->pty->slave); */
tty_setctty(STDIN_FILENO);
}
but it doesn't help, only I need to type 3 characters more instead of two (I am
not sure if I described it precisely enough - the characters are not getting
eaten, it seems only that there is some additional 2-3 charactrs buffer between
the keyboard and shell). I guess I have to wait for proper Solaris pty
support.
User authentication successful.
Warning: no access to tty (Inappropriate ioctl for device).
Thus no job control in this shell.
[...]
biff failed: cannot locate your tty: ttyname() for file descriptor 2 returned NULL
janr jwr mirnaz operator operator pawelg pawelg rzm rzm rzm rzm rzm rzm rzm rzm rzm
rzm rzm umpl wojsyl wojsyl wojsyl
R.