summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-17 20:19:29 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-17 20:19:29 +0200
commit2d98f4e28f7e86feea595ef5e4ff8b32037b64e9 (patch)
tree716645fbede10073fb8d5b109fb3d7eac7912254 /Kernel/Process.cpp
parentf015798af92e59e3942ae4e8c42a67d0e61ad470 (diff)
downloadserenity-2d98f4e28f7e86feea595ef5e4ff8b32037b64e9.zip
Kernel: Make the times() syscall return something other than 0.
Based on the description I read, this syscall doesn't seem completely reasonable, but let's at least return a number that is likely to change between invocations in case somebody depends on that happening.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 2e95e13c78..4063a2263b 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -1710,7 +1710,7 @@ clock_t Process::sys$times(tms* times)
times->tms_stime = m_ticks_in_kernel;
times->tms_cutime = m_ticks_in_user_for_dead_children;
times->tms_cstime = m_ticks_in_kernel_for_dead_children;
- return 0;
+ return g_uptime & 0x7fffffff;
}
int Process::sys$select(const Syscall::SC_select_params* params)