um: fix crash while os_dump_core()
authorRichard Weinberger <richard@nod.at>
Wed, 25 May 2011 00:13:04 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:42 +0000 (08:39 -0700)
commitdb271cf03f5fe39feab8e1b1818c0880c7290c5c
tree4624b82259d3ea5c9ddf832fb78c8958dcba0e46
parent607647ab04cb7c23616fb5c5dc8bad86f410226d
um: fix crash while os_dump_core()

os_dump_core() emits SIGTERM to terminate all UML processes.  Kernel
threads have to exit on SIGTERM instead of calling last_ditch_exit().
Multiple calls to last_ditch_exit() can cause a crash.

Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/process.c