Put a commit message from r296502 about Linux alarm() system call
behaviour to the source. Suggested by: emaste@ MFC after: 1 week
This commit is contained in:
parent
7b68aa7b6f
commit
649ca5e9dc
@ -206,6 +206,11 @@ linux_alarm(struct thread *td, struct linux_alarm_args *args)
|
||||
it.it_value.tv_usec = 0;
|
||||
it.it_interval.tv_sec = 0;
|
||||
it.it_interval.tv_usec = 0;
|
||||
/*
|
||||
* According to POSIX and Linux implementation
|
||||
* the alarm() system call is always successfull.
|
||||
* Ignore errors and return 0 as a Linux do.
|
||||
*/
|
||||
kern_setitimer(td, ITIMER_REAL, &it, &old_it);
|
||||
if (timevalisset(&old_it.it_value)) {
|
||||
if (old_it.it_value.tv_usec != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user