Jeff Dike 00a905e614 uml: don't kill pid 0
A bit of defensive programming - during development, it ocassionally
happens that a call to init_new_context is missed, resulting in
context holding a host pid of zero.  When that address space is torn
down, destroy_context does a kill(0), which instantly kills the whole
UML without any errors whatsoever.

This patch add a check for pids less than 2, to also catch 1 and
negative pids.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:30 -08:00
..
2008-02-05 09:44:30 -08:00
2005-04-16 15:20:36 -07:00
2008-02-05 09:44:29 -08:00
2007-10-20 01:23:03 +02:00
2005-04-16 15:20:36 -07:00
2007-10-16 09:43:05 -07:00
2008-02-05 09:44:29 -08:00
2008-02-05 09:44:29 -08:00
2008-02-05 09:44:29 -08:00
2007-10-16 09:43:05 -07:00
2008-02-05 09:44:28 -08:00
2008-02-05 09:44:29 -08:00
2007-10-20 01:23:03 +02:00
2008-02-05 09:44:26 -08:00
2007-10-16 09:43:05 -07:00
2008-02-05 09:44:29 -08:00
2007-10-16 09:43:05 -07:00
2007-05-07 12:13:01 -07:00
2007-10-16 09:43:08 -07:00
2008-02-05 09:44:29 -08:00
2007-10-16 09:43:05 -07:00
2008-02-05 09:44:29 -08:00
2007-02-11 10:51:24 -08:00