Re: how to confuse truss: truss -f fsck -p /

From: Tim Robbins <tjr_at_freebsd.org>
Date: Mon, 9 Feb 2004 16:55:18 +1100
On Mon, Feb 09, 2004 at 04:17:40AM +0100, Matthias Andree wrote:

> After typing "truss -f fsck -p /", I see nothing. I press ^Z
> and type kill -9 % (killing truss).
> 
> I now have these fine processes hanging dead in memory, they are immune
> to kill -9 and don't respond to kill -CONT either, ps axl:
> 
>   UID   PID  PPID CPU PRI NI   VSZ  RSS MWCHAN STAT  TT       TIME COMMAND
>     0 56974     1   0   8  0  1256  744 ppwait D     p1    0:00.00 fsck -p /
>     0 56975 56974   0   8  0  1256  744 stopev DV    p1    0:00.00 fsck -p /
> 
> Is this how things are supposed to be, even though killing a tracer is
> way stupid? I think it's not nice to have unkillable processes.

procfs is disabled by default for a reason :-)

> Is there a way to get rid of these without reboot?

Try procctl(8).


Tim
Received on Sun Feb 08 2004 - 20:56:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC