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:
Dmitry Chagin 2016-03-08 19:20:57 +00:00
parent 7b68aa7b6f
commit 649ca5e9dc

View File

@ -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)