Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 1997 23:25:43 +0100 (MEZ)
From:      Robert Eckardt <roberte@MEP.Ruhr-Uni-Bochum.de>
To:        archie@whistle.com (Archie Cobbs)
Cc:        Shimon@i-connect.net, freebsd-hackers@FreeBSD.ORG
Subject:   Re: unkillable process
Message-ID:  <199711132225.XAA01539@ghost.mep.ruhr-uni-bochum.de>
In-Reply-To: <199711131848.KAA19595@bubba.whistle.com> from Archie Cobbs at "Nov 13, 97 10:48:17 am"

next in thread | previous in thread | raw e-mail | index | archive | help
It was Archie Cobbs who wrote:
> Simon Shapiro writes:
> > Hi Archie Cobbs;  On 12-Nov-97 you wrote: 
> > >  Try the following experiment (on 2.2 and mabye 3.0):
> > >  
> > >  1. Create a named pipe
> > >  2. Start typing into it using cat
> > >  3. Hit control-C as many times as you want
> > >  
> > >  You'll see that the process will not die even with kill -9,
> > >  as it is stuck in uninterrupible disk sleep ("fifo").

I tried with `cat'.
23:16 ghost: /home/re 0% mkfifo p
23:16 ghost: /home/re 0% /bin/cat - > p
sdjksdfjk
lksjflsfjkd
^C^C^?^?
^Z^Z^Z
Beendet
23:17 ghost: /home/re 143% 
23:17 ghost: /home/re 143% 

I didn't find `cat' in the process list, though I used the
tcsh-external program in /bin. However, `ps -auxlw' showed:
roberte   1524  0.0  1.3   696  784  p4  IV+  11:16pm    0:00.00 -csh (tcsh)        100  1524   307   0   2  0   696  784 fifo   IV+   p4    0:00.00 -csh (tcsh)

After a simple `kill 1524' the above cat returned (`Beendet').
This is on 2.2.2-RELEASE.

> Hmm... does anyone else besides me have the opinion that,
> while it may be typical, this behavior is also *broken*?

If at least `kill -9' doesn't/didn't work, I would definitely call
it an error (since it may cause e.g. an uncleanly umounted filesystem).

> Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


Robert

-- 
Robert Eckardt                \\ FreeBSD -- solutions for a large universe.(tm)
RobertE@MEP.Ruhr-Uni-Bochum.de \\       What do you want to boot tomorrow ?(tm)
http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte
For PGP-key finger roberte@gluon.MEP.Ruhr-Uni-Bochum.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711132225.XAA01539>