diff options
author | guenther <guenther@openbsd.org> | 2014-05-15 04:43:25 +0000 |
---|---|---|
committer | guenther <guenther@openbsd.org> | 2014-05-15 04:43:25 +0000 |
commit | 67330adf71d698fcd3519ee44d012fbf72268b9a (patch) | |
tree | 8c9519246847176edcfe48b28ff8a723aca953fa /sys/sys/event.h | |
parent | Prefer prsignal() to send process signals (diff) | |
download | wireguard-openbsd-67330adf71d698fcd3519ee44d012fbf72268b9a.tar.xz wireguard-openbsd-67330adf71d698fcd3519ee44d012fbf72268b9a.zip |
knote_processexit() needs the thread to pass down to FRELE(), so pass it
the exiting thread instead of assuming that that's ps_mainproc.
Also, panic no matter which thread of init takes it down.
ok tedu@
Diffstat (limited to 'sys/sys/event.h')
-rw-r--r-- | sys/sys/event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/event.h b/sys/sys/event.h index 2a488448af8..d0523a7f858 100644 --- a/sys/sys/event.h +++ b/sys/sys/event.h @@ -1,4 +1,4 @@ -/* $OpenBSD: event.h,v 1.19 2013/08/13 05:52:26 guenther Exp $ */ +/* $OpenBSD: event.h,v 1.20 2014/05/15 04:43:25 guenther Exp $ */ /*- * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org> @@ -170,7 +170,7 @@ extern void knote(struct klist *list, long hint); extern void knote_activate(struct knote *); extern void knote_remove(struct proc *p, struct klist *list); extern void knote_fdclose(struct proc *p, int fd); -extern void knote_processexit(struct process *); +extern void knote_processexit(struct proc *); extern int kqueue_register(struct kqueue *kq, struct kevent *kev, struct proc *p); extern int filt_seltrue(struct knote *kn, long hint); |