diff options
author | brian <brian@FreeBSD.org> | 1997-05-10 06:04:23 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-05-10 06:04:23 +0000 |
commit | b4165ce57d8bdc4b485852e5d70e62bbeac172bd (patch) | |
tree | aecf6ff9b71e03e663af4831a33a160efd6e9500 /sys/kern/kern_time.c | |
parent | 390899b408de6d94695b09c8886977b06a71f63f (diff) | |
download | FreeBSD-src-b4165ce57d8bdc4b485852e5d70e62bbeac172bd.zip FreeBSD-src-b4165ce57d8bdc4b485852e5d70e62bbeac172bd.tar.gz |
Pay attention to what Bruce actually says
rather than what I think he's going to say.
(Now undoing the last timerval change)
Really suggested by: bde
Diffstat (limited to 'sys/kern/kern_time.c')
-rw-r--r-- | sys/kern/kern_time.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 41ca7eb..b5fbf0f 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 - * $Id: kern_time.c,v 1.23 1997/05/08 14:16:25 peter Exp $ + * $Id: kern_time.c,v 1.24 1997/05/10 05:29:41 brian Exp $ */ #include <sys/param.h> @@ -485,11 +485,8 @@ setitimer(p, uap, retval) return (error); if (itvp == 0) return (0); - if (itimerfix(&aitv.it_value)) + if (itimerfix(&aitv.it_value) || itimerfix(&aitv.it_interval)) return (EINVAL); - if (aitv.it_value.tv_sec || aitv.it_value.tv_usec) - if (itimerfix(&aitv.it_interval)) - return (EINVAL); s = splclock(); if (uap->which == ITIMER_REAL) { untimeout(realitexpire, (caddr_t)p); |