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
This commit is contained in:
parent
390899b408
commit
b4165ce57d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user