diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-24 02:47:20 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-24 02:54:05 +0100 |
commit | 7effecf87173a122c95427dafa971abbbdba3493 (patch) | |
tree | 1802737fadfc8fb433682c3bd4f681bc5c513ddf /linux/dev | |
parent | 6ea0920c4c99f53f6c4d784285c5aa00ba9a5b2f (diff) |
Fix issig crash at boot
* linux/dev/glue/misc.c (issig): Return 0 if current_thread() is NULL.
Diffstat (limited to 'linux/dev')
-rw-r--r-- | linux/dev/glue/misc.c | 2 |
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; } |