From 2d98f4e28f7e86feea595ef5e4ff8b32037b64e9 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 17 May 2019 20:19:29 +0200 Subject: [PATCH] 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. --- Kernel/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)