Date: Tue, 10 Sep 1996 19:48:11 -0700 From: "Michael L. VanLoon -- HeadCandy.com" <michaelv@MindBender.serv.net> To: David Kelly <dkelly@hiwaay.net> Cc: hackers@freebsd.org, Jim Durham <durham@w2xo.pgh.pa.us>, John Perry <perry@alpha.jpunix.com> Subject: Re: pty's and slattach Message-ID: <199609110248.TAA17846@MindBender.serv.net> In-Reply-To: Your message of Tue, 10 Sep 96 20:30:38 -0500. <XFMail.960910211424.dkelly@hiwaay.net>
index | next in thread | previous in thread | raw e-mail
> slattach -l -L /dev/ptypf
>or similar. Of course you should realize by now it works somewhere else but
>not in FreeBSD. What we get in /var/log/messages is:
> Sep 10 19:53:08 nexgen slattach[11472]: ioctl(TIOCSCTTY): Operation
> not permitted
[...]
>Studying /usr/src/sys/kern/tty_pty.c I find no mention of TIOCSCTTY. No
>wonder its not permitted. Studying /usr1/src/sbin/slattach/slattach.c we
>find:
> /* acquire the serial line as a controling terminal. */
> if (ioctl(fd, TIOCSCTTY, 0) < 0) {
> syslog(LOG_ERR,"ioctl(TIOCSCTTY): %m");
> exit_handler(1);
> }
I don't remember the explanation of why this was done, but it was
fixed in NetBSD many months ago. I don't think there was much
involved (maybe it was just removing that condition check -- but my
vague recollection was that there was slightly more to it). Anyway,
there is precedent in the *BSD community...
-----------------------------------------------------------------------------
Michael L. VanLoon michaelv@MindBender.serv.net
--< Free your mind and your machine -- NetBSD free un*x >--
NetBSD working ports: 386+PC, Mac 68k, Amiga, Atari 68k, HP300, Sun3,
Sun4/4c/4m, DEC MIPS, DEC Alpha, PC532, VAX, MVME68k, arm32...
NetBSD ports in progress: PICA, others...
-----------------------------------------------------------------------------
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609110248.TAA17846>
