summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-07-20 11:05:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-20 12:15:24 +0200
commit833d444cd806c490041da4420f5286e59c1c5ed4 (patch)
treeacff2c67ca6cc2e7daefe8b5279d85bf2e97ce97 /Kernel/init.cpp
parent56217c743260d6db839ccb3ce8f99b14d7973627 (diff)
downloadserenity-833d444cd806c490041da4420f5286e59c1c5ed4.zip
Thread: Return a result from block() indicating why the block terminated
And use this to return EINTR in various places; some of which we were not handling properly before. This might expose a few bugs in userspace, but should be more compatible with other POSIX systems, and is certainly a little cleaner.
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index e6290b26bb..fe204a5a94 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -242,7 +242,7 @@ extern "C" [[noreturn]] void init()
current->process().set_priority(Process::LowPriority);
for (;;) {
Thread::finalize_dying_threads();
- current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
+ (void)current->block<Thread::SemiPermanentBlocker>(Thread::SemiPermanentBlocker::Reason::Lurking);
Scheduler::yield();
}
});