From 7effecf87173a122c95427dafa971abbbdba3493 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 24 Mar 2012 02:47:20 +0100 Subject: Fix issig crash at boot * linux/dev/glue/misc.c (issig): Return 0 if current_thread() is NULL. --- linux/dev/glue/misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux/dev') diff --git a/linux/dev/glue/misc.c b/linux/dev/glue/misc.c index f25d501..77dc31d 100644 --- a/linux/dev/glue/misc.c +++ b/linux/dev/glue/misc.c @@ -121,6 +121,8 @@ linux_to_mach_error (int err) int issig () { + if (!current_thread()) + return 0; return current_thread ()->wait_result != THREAD_AWAKENED; } -- cgit v1.2.3