Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: anthony@aaii.oz.au (Anthony Baxter)
Subject: DEC OSF/1 1.2 inetd and process groups.
Date: Tue, 31 Aug 1993 04:13:37 GMT	[thread overview]
Message-ID: <anthony.746770417@eden-valley> (raw)

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.


             reply	other threads:[~1993-08-31  4:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-31  4:13 Anthony Baxter [this message]
1993-09-01 21:02 ` DEC OSF/1 1.2 inetd and process groups Tom Jordahl
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox