diff options
author | 2013-10-08 03:50:06 +0000 | |
---|---|---|
committer | 2013-10-08 03:50:06 +0000 | |
commit | a554f8d9c26f17ff529f06b95d7012ef0acf0fc6 (patch) | |
tree | bef7ec274b156d91bea80729c0556b6621f8cfd1 /sys/kern/kern_fork.c | |
parent | If a thread sends a signal to its own process, then have that thread (diff) | |
download | wireguard-openbsd-a554f8d9c26f17ff529f06b95d7012ef0acf0fc6.tar.xz wireguard-openbsd-a554f8d9c26f17ff529f06b95d7012ef0acf0fc6.zip |
Fix delivery of SIGPROF and SIGVTALRM to threaded processes by having
hardclock() set a flag on the running thread and force AST processing,
and then have the thread signal itself from userret().
idea and flag names from FreeBSD
ok jsing@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index fb04e7befc0..1255aae6d8f 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_fork.c,v 1.153 2013/08/14 05:26:14 guenther Exp $ */ +/* $OpenBSD: kern_fork.c,v 1.154 2013/10/08 03:50:07 guenther Exp $ */ /* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */ /* @@ -183,8 +183,6 @@ process_new(struct proc *p, struct process *parent) pr->ps_limit->p_refcnt++; timeout_set(&pr->ps_realit_to, realitexpire, pr); - timeout_set(&pr->ps_virt_to, virttimer_trampoline, pr); - timeout_set(&pr->ps_prof_to, proftimer_trampoline, pr); pr->ps_flags = parent->ps_flags & (PS_SUGID | PS_SUGIDEXEC); if (parent->ps_session->s_ttyvp != NULL && |