Fix process constructor not zeroing the user timers.
This commit is contained in:
parent
f1f272390b
commit
316ed84e60
|
@ -102,6 +102,7 @@ Process::Process()
|
||||||
ptrlock = KTHREAD_MUTEX_INITIALIZER;
|
ptrlock = KTHREAD_MUTEX_INITIALIZER;
|
||||||
idlock = KTHREAD_MUTEX_INITIALIZER;
|
idlock = KTHREAD_MUTEX_INITIALIZER;
|
||||||
user_timers_lock = KTHREAD_MUTEX_INITIALIZER;
|
user_timers_lock = KTHREAD_MUTEX_INITIALIZER;
|
||||||
|
memset(&user_timers, 0, sizeof(user_timers));
|
||||||
segments = NULL;
|
segments = NULL;
|
||||||
segments_used = 0;
|
segments_used = 0;
|
||||||
segments_length = 0;
|
segments_length = 0;
|
||||||
|
|
|
@ -42,8 +42,6 @@
|
||||||
#include <sortix/kernel/time.h>
|
#include <sortix/kernel/time.h>
|
||||||
#include <sortix/kernel/user-timer.h>
|
#include <sortix/kernel/user-timer.h>
|
||||||
|
|
||||||
// TODO: Memset all user timers in process constructor.
|
|
||||||
|
|
||||||
namespace Sortix {
|
namespace Sortix {
|
||||||
|
|
||||||
// TODO: We also need to fetch the pthread attr if there is one.
|
// TODO: We also need to fetch the pthread attr if there is one.
|
||||||
|
|
Loading…
Reference in New Issue