Don't cancel the alarm on exec*(). POSIX alarm() requires that. The BeBook
doesn't mention the expected set_alarm() behavior. Tests under BeOS R5 Bone crash the system in either case, though, so I guess we're free to go with the expected POSIX behavior. This make detection of hanging tests in the Open POSIX Test Suite work. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36046 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4e8d74eed5
commit
5a0b30dbda
@ -1705,8 +1705,9 @@ thread_reset_for_exec(void)
|
||||
{
|
||||
struct thread *thread = thread_get_current_thread();
|
||||
|
||||
cancel_timer(&thread->alarm);
|
||||
reset_signals(thread);
|
||||
|
||||
// Note: We don't cancel an alarm. It is supposed to survive exec*().
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user