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?
HTH,
Ray
--
LEADERSHIP A form of self-preservation exhibited by people with auto-
destructive imaginations in order to ensure that when it comes to the crunch
it'll be someone else's bones which go crack and not their own.
- The Hipcrime Vocab by Chad C. Mulligan