kill now sends the signal to the main thread of a process only. To target a specific thread use the new send_signal syscall. Also added set_alarm.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1662 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -971,6 +971,9 @@ thread_exit(int retcode)
|
||||
// boost our priority to get this over with
|
||||
thread_set_priority(t->id, B_FIRST_REAL_TIME_PRIORITY);
|
||||
|
||||
// Cancel previously installed alarm timer, if any
|
||||
cancel_timer(&t->alarm);
|
||||
|
||||
// delete the user stack region first
|
||||
if (p->_aspace_id >= 0 && t->user_stack_region_id >= 0) {
|
||||
region_id rid = t->user_stack_region_id;
|
||||
|
||||
Reference in New Issue
Block a user