From b4165ce57d8bdc4b485852e5d70e62bbeac172bd Mon Sep 17 00:00:00 2001 From: brian Date: Sat, 10 May 1997 06:04:23 +0000 Subject: 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 --- sys/kern/kern_time.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/kern/kern_time.c') 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 @@ -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); -- cgit v1.1