Date: Fri, 8 Nov 1996 04:04:53 +0600 From: Tim Pierce <twpierce@midway.uchicago.edu> To: hackers@freebsd.org Subject: TIOCSPGRP on ptys? Message-ID: <9611081004.AA11205@bio-5.bsd.uchicago.edu>
next in thread | raw e-mail | index | archive | help
In 2.1.5, TIOCSPGRP ioctls cannot be made on slave pseudo-terminals. In fact, the source for kern/tty_pty.c seems to be written to prevent *any* ioctls from being performed on slave ptys, and to prevent most TIOC ioctls from being performed on master ptys. Am I reading the source correctly? This behavior seems to be inconsistent with the pty(4) man page: The slave device provides to a process an in- terface identical to that described in tty(4). If this is the intended behavior, what is the `correct' (i.e. portable, non-deprecated) method for setting the process group for a pty? I see a TIOCSCTTY ioctl and a `login_tty' function in libutil, but no documentation, and am not sure whether these interfaces are stable or experimental.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9611081004.AA11205>