diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-05-17 20:19:29 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-17 20:19:29 +0200 |
commit | 2d98f4e28f7e86feea595ef5e4ff8b32037b64e9 (patch) | |
tree | 716645fbede10073fb8d5b109fb3d7eac7912254 /Kernel/Process.cpp | |
parent | f015798af92e59e3942ae4e8c42a67d0e61ad470 (diff) | |
download | serenity-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.cpp | 2 |
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) |