From owner-freebsd-hackers Tue Sep 10 22:23:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA11918 for hackers-outgoing; Tue, 10 Sep 1996 22:23:38 -0700 (PDT) Received: from mx.serv.net (mx.serv.net [199.201.191.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA11911 for ; Tue, 10 Sep 1996 22:23:33 -0700 (PDT) Received: from MindBender.serv.net by mx.serv.net (8.7.5/SERV Revision: 2.30 † id WAA14011; Tue, 10 Sep 1996 22:22:36 -0700 (PDT) Received: from localhost.HeadCandy.com (michaelv@localhost.HeadCandy.com [127.0.0.1]) by MindBender.serv.net (8.7.5/8.7.3) with SMTP id TAA17846; Tue, 10 Sep 1996 19:48:12 -0700 (PDT) Message-Id: <199609110248.TAA17846@MindBender.serv.net> X-Authentication-Warning: MindBender.serv.net: Host michaelv@localhost.HeadCandy.com [127.0.0.1] didn't use HELO protocol To: David Kelly cc: hackers@freebsd.org, Jim Durham , John Perry Subject: Re: pty's and slattach In-reply-to: Your message of Tue, 10 Sep 96 20:30:38 -0500. Date: Tue, 10 Sep 1996 19:48:11 -0700 From: "Michael L. VanLoon -- HeadCandy.com" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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... -----------------------------------------------------------------------------