Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: process group of tty** Message-ID: <3087@auspex.auspex.com> Date: 27 Mar 90 19:00:41 GMT References: <1990Mar26.173414.28049@zardoz.cpd.com> Organization: Auspex Systems, Santa Clara Lines: 21 >I have a program that needs to be able to send a HUP signal to the >process group associated with the tty side of a tty/pty pair. The driver for your serial board, right? In: 1) SunOS 4.x; 2) SunOS 3.x and later, for some value of "x" >= 2; and 3) probably System V Release 4 there's an "ioctl" you can do on the master side that causes a signal to be delivered to the process group of the slave side, namely TIOCSIGNAL. Its argument is a pointer to an "int" containing the signal value. If you don't have that, try doing TIOCGPGRP to find out what process group to which to send the signal.