summaryrefslogtreecommitdiff
path: root/linux/dev
diff options
context:
space:
mode:
Diffstat (limited to 'linux/dev')
-rw-r--r--linux/dev/glue/misc.c2
1 files changed, 2 insertions, 0 deletions
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;
}