aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sys_process.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-03-05 23:29:08 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-04-09 20:43:51 +0000
commit2fd1ffefaa4d2cd99a19f866a949cb2cd58ef998 (patch)
treeea49dbe9ec3ef9e2d71741130ed5efc032782b9b /sys/kern/sys_process.c
parent533e5057ed2503013643bf8450588e4aa58c2b7e (diff)
Stop arming kqueue timers on knote owner suspend or terminate
This way, even if the process specified very tight reschedule intervals, it should be stoppable/killable. Reported and reviewed by: markj Tested by: markj, pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D29106
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r--sys/kern/sys_process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 8c0f743aef8a..51c7bd662600 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1095,6 +1095,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
thread_unsuspend(p);
PROC_SUNLOCK(p);
itimer_proc_continue(p);
+ kqtimer_proc_continue(p);
break;
case PT_WRITE_I: