Fix process constructor not zeroing the user timers.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-07-21 13:12:08 +02:00
parent f1f272390b
commit 316ed84e60
2 changed files with 1 additions and 2 deletions

View File

@ -102,6 +102,7 @@ Process::Process()
ptrlock = KTHREAD_MUTEX_INITIALIZER;
idlock = KTHREAD_MUTEX_INITIALIZER;
user_timers_lock = KTHREAD_MUTEX_INITIALIZER;
memset(&user_timers, 0, sizeof(user_timers));
segments = NULL;
segments_used = 0;
segments_length = 0;

View File

@ -42,8 +42,6 @@
#include <sortix/kernel/time.h>
#include <sortix/kernel/user-timer.h>
// TODO: Memset all user timers in process constructor.
namespace Sortix {
// TODO: We also need to fetch the pthread attr if there is one.