On Fri, 12 Feb 1999, 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?

Currently only BSD shemantics of ptys are supported. (at least I had BSD
in mind when coding those) Solaris uses /dev/ptmx and it is not supported
yet. It may compile and seem to run, since Solaris seem to have some
compatibility hack, but it may not support everything.

--- Bazsi

Reply via email to