From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,65ffa68bedbf8f54,start X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,65ffa68bedbf8f54,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-08-30 21:39:49 PST Xref: gmd.de comp.sys.dec:9807 comp.unix.osf.osf1:938 Newsgroups: comp.sys.dec,comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!darwin.sura.net!math.ohio-state.edu!cs.utexas.edu!uunet!munnari.oz.au!yarra-glen.aaii.oz.au!anthony From: anthony@aaii.oz.au (Anthony Baxter) Subject: DEC OSF/1 1.2 inetd and process groups. Message-ID: Summary: its broken. Keywords: inetd osf/1 Sender: usenet@yarra-glen.aaii.oz.au (Network News) Organization: Australian Artificial Intelligence Institute Date: Tue, 31 Aug 1993 04:13:37 GMT Here's a fun one for you - under OSF/1 1.2 (and, it seems, 1.3) inetd doesnt make its child processes process group leaders. This has a few unfortunate side-effects. "rsh machine script" as root, where 'script' contains 'kill -9 0' (which is useful to make sure you get rid of any leftover child processes) will kill the not only the script, any children, and the rshd, but also inetd, _and_ every child of inetd running (eg all rlogind's, rshd's, &c.) This is extremely nasty. It seems that OSF/1 1.3 has this problem also (from looking at axposf.pa.dec.com). For some reason 'inetd -d' (debugging mode) works properly, making its children process group leaders. So the workaround we are using until the telephone support centre returns our call is 'inetd -d >/dev/null 2>&1 &'. With ordinary 'inetd': alamein # ps agxopid,ppid,pgid,comm PID PPID PGID COMMAND 609 1 609 /usr/sbin/inetd 664 609 609 rshd 665 664 609 sh -c sleep 4000 666 665 609 sleep 4000 669 609 609 rlogind 670 669 670 -sh (sh) So the inetd stays in the same process group as the rshd and rlogind. Bad. If, however, it is run with '-d', and I do the same: alamein # ps agxopid,ppid,pgid,comm PID PPID PGID COMMAND 678 514 678 /usr/sbin/inetd -d 681 678 681 rshd 683 681 681 sh -c sleep 4000 684 683 681 sleep 4000 687 678 687 rlogind 689 687 689 -sh (sh) it works. A workable workaround. How to tell if you trip this bug? Well, for starters, all your logins over the network to the machine go away, and you cant log back in. :-) Anthony. -- anthony baxter australian artificial intelligence institute email : anthony@aaii.oz.au 1 grattan st, carlton, australia 3053 /\/\|| phone : +613 663 7922 Disclaimer: Unless otherwise specified, the above is my opinion, not AAII's.