From 6e66ef0e1dfd178e17eb844585bda1fba8c3662e Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 5 Jun 1997 08:05:55 +0000 Subject: kill the other timers too --- sys/kern/kern_exec.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 6de528c9d24..afef8c589d9 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exec.c,v 1.10 1997/06/04 14:34:17 deraadt Exp $ */ +/* $OpenBSD: kern_exec.c,v 1.11 1997/06/05 08:05:54 deraadt Exp $ */ /* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */ /*- @@ -480,10 +480,16 @@ sys_execve(p, v, retval) p->p_cred->p_svgid = p->p_ucred->cr_gid; if (p->p_flag & P_SUGIDEXEC) { - int s = splclock(); + int i, s = splclock(); + untimeout(realitexpire, (void *)p); timerclear(&p->p_realtimer.it_interval); timerclear(&p->p_realtimer.it_value); + for (i = 0; i < sizeof(p->p_stats->p_timer) / + sizeof(p->p_stats->p_timer[0]); i++) { + timerclear(&p->p_stats->p_timer[i].it_interval); + timerclear(&p->p_stats->p_timer[i].it_value); + } splx(s); } -- cgit v1.2.3