* set_alarm() now correctly returns the time left for the currently active
alarm, or 0 if there isn't any. * setitimer() now also sets the previous timer values correctly, so that alarm() and ualarm() now return the correct values as well - this fixes the test fork_9-1 failing at alarm(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18545 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -209,6 +209,7 @@ create_thread_struct(const char *name, thread_id threadID)
|
||||
thread->queue_next = NULL;
|
||||
thread->priority = thread->next_priority = -1;
|
||||
thread->args1 = NULL; thread->args2 = NULL;
|
||||
thread->alarm.period = 0;
|
||||
thread->sig_pending = 0;
|
||||
thread->sig_block_mask = 0;
|
||||
memset(thread->sig_action, 0, 32 * sizeof(struct sigaction));
|
||||
|
||||
Reference in New Issue
Block a user