diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-11-16 20:02:22 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-11-16 20:02:22 +0000 |
commit | e4e19f48e436ae522921b35940bd8ecaaf14c2df (patch) | |
tree | 3667a5746513529576541577c61116a26890b3ea /sys/kern/kern_exit.c | |
parent | cc6435e3abcd82c3915650627ead7b32a29a701b (diff) |
support kernel event queues, from FreeBSD by Jonathan Lemon,
okay art@, millert@
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index cb2aea9696a..96c19a5d6ed 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.27 2000/06/06 18:50:32 art Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.28 2000/11/16 20:02:16 provos Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -264,6 +264,11 @@ exit1(p, rv) p->p_pctcpu = 0; /* + * notify interested parties of our demise. + */ + KNOTE(&p->p_klist, NOTE_EXIT); + + /* * Notify parent that we're gone. If we have P_NOZOMBIE or parent has * the P_NOCLDWAIT flag set, notify process 1 instead (and hope it * will handle this situation). |