lkml.org 
[lkml]   [1998]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kill -9 <pid of X>

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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.289 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site