mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 21:25:07 +00:00
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.
This commit is contained in:
parent
f015798af9
commit
2d98f4e28f
1 changed files with 1 additions and 1 deletions
|
@ -1710,7 +1710,7 @@ clock_t Process::sys$times(tms* times)
|
||||||
times->tms_stime = m_ticks_in_kernel;
|
times->tms_stime = m_ticks_in_kernel;
|
||||||
times->tms_cutime = m_ticks_in_user_for_dead_children;
|
times->tms_cutime = m_ticks_in_user_for_dead_children;
|
||||||
times->tms_cstime = m_ticks_in_kernel_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)
|
int Process::sys$select(const Syscall::SC_select_params* params)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue