Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukma.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!sean From: sean@ukma.UUCP (Sean Casey) Newsgroups: net.unix,net.unix-wizards Subject: Re: setpgrp() affecting TTY GROUP ID Message-ID: <2252@ukma.UUCP> Date: Sun, 29-Sep-85 14:26:54 EDT Article-I.D.: ukma.2252 Posted: Sun Sep 29 14:26:54 1985 Date-Received: Tue, 1-Oct-85 03:23:48 EDT References: <2366@sdcrdcf.UUCP> Reply-To: sean@ukma.UUCP (Sean Casey) Distribution: net Organization: The White Tower @ The Univ. of KY Lines: 20 Xref: watmath net.unix:5761 net.unix-wizards:15047 In article <2366@sdcrdcf.UUCP> curt@sdcrdcf.UUCP (Curt Dodds) writes: > >I am using setpgrp() (in a shell that I am writing) to change the PROCESS >GROUP ID of the child after the first fork(). This allows me to use kill() >to send signals to that child and all of its children (because they >share the same PROCESS GROUP ID). > >However, it seems that certain programs which try to open the device >"/dev/tty" don't work when setpgrp() has been called. Examples are >"su" and a version of "mail" that I have. Hey! Are you on System V? Maybe this has something to do with the problem of /dev/tty sometimes not being openable from the console. -- - Sean Casey UUCP: sean@ukma.UUCP or - Department of Mathematics {cbosgd,anlams,hasmed}!ukma!sean - University of Kentucky ARPA: ukma!sean@ANL-MCS.ARPA Brought to you by Super Global Mega Corp .com