setpgrp() affecting TTY GROUP ID

Sean Casey sean at ukma.UUCP
Mon Sep 30 04:26:54 AEST 1985


In article <2366 at sdcrdcf.UUCP> curt at 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 at ukma.UUCP   or
-  Department of Mathematics                    {cbosgd,anlams,hasmed}!ukma!sean
-  University of Kentucky               ARPA:   ukma!sean at ANL-MCS.ARPA



More information about the Comp.unix.wizards mailing list