diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-03 14:20:13 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-03 14:20:13 +0200 |
commit | 1b902346ce502870329bda19d92d317a21cab56e (patch) | |
tree | 45f7d5702e0320047966a1fdd903917730f25627 /kern/console.c | |
parent | 77bb91faa0059b157220ef2e1732bdf89618a375 (diff) |
kern/thread: improve thread_wakeup robustness
Diffstat (limited to 'kern/console.c')
-rw-r--r-- | kern/console.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kern/console.c b/kern/console.c index d7104e47..fef4f654 100644 --- a/kern/console.c +++ b/kern/console.c @@ -155,9 +155,7 @@ console_intr(struct console *console, const char *s) s++; } - if ((console->waiter != NULL) && (console->waiter != thread_self())) { - thread_wakeup(console->waiter); - } + thread_wakeup(console->waiter); out: spinlock_unlock(&console->lock); |