Re: kill -9 <pid of X>

Richard B. Johnson (root@chaos.analogic.com)
Fri, 14 Aug 1998 22:31:15 -0400 (EDT)


If I boot with init=/bin/bash and mount /proc so I can see what's
happening, bash is called "init" and it is pid 1 as expected.

If I attempt to kill it, nothing happens because, by default, the
kernel will not send a signal 9 to pid 1. However, I can exit and
be left with nothing. In other words, if init exits, the kernel doesn't
automatically start another.

I think anybody who is interested in what happends to init with
signals can play with init=/bin/bash and get a good idea of what
the behavior is. I don't know if it's the correct behavior. I
always thought that init was even protected from exit(), but not
so. Also, when booting with bash, one can `exec /sbin/init` and
init will start normally --- with pid == 1 --- good(tm).

Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.1.115 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html