Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!think!ames!ucbcad!ucbvax!decvax!decwrl!sun!gorodish!guy From: guy@gorodish.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Auto-logout. Message-ID: <16183@sun.uucp> Date: Sun, 5-Apr-87 06:59:30 EST Article-I.D.: sun.16183 Posted: Sun Apr 5 06:59:30 1987 Date-Received: Sun, 5-Apr-87 22:37:10 EST References: <868@bc-cis.UUCP> <149@galbp.UUCP> Sender: news@sun.uucp Reply-To: guy@sun.UUCP (Guy Harris) Organization: Sun Microsystems, Mountain View Lines: 24 Xref: utgpu comp.unix.questions:1628 comp.unix.wizards:1677 >Did you know that when a process group leader exit()'s, all of the members >of that group get SIGHUP's? Yup. >I found this in the Xenix 3.0 kernel. Is it standard UNIX? It's not universal, but it's pretty standard. System III and System V do this; I think 4BSD does it as well, as long as "init" does a "vhangup" call on the line. >I don't recall it documented anywhere. From the System V manual page EXIT(2): "Exit" terminates the calling process with the following consequences: ... If the process ID, tty group ID, and process group ID of the calling process are equal, the SIGHUP signal is sent to each process that has a process group ID equal to that of the calling process.