diff options
| author | 2018-11-12 15:09:17 +0000 | |
|---|---|---|
| committer | 2018-11-12 15:09:17 +0000 | |
| commit | e0e8a7c4892bc434a32dba76ca02883f9b1071d1 (patch) | |
| tree | 6e775ad33122da8163703582cf93772d54dbfdd6 /sys/kern/kern_exit.c | |
| parent | Allow style #[] in mode formats. (diff) | |
| download | wireguard-openbsd-e0e8a7c4892bc434a32dba76ca02883f9b1071d1.tar.xz wireguard-openbsd-e0e8a7c4892bc434a32dba76ca02883f9b1071d1.zip | |
Add a mechanism for managing asynchronous IO signal registrations.
It centralizes IO signal privilege checking and makes possible to revoke
a registration when the target process or process group is deleted.
Adapted from FreeBSD.
OK kettenis@ mpi@ guenther@
Diffstat (limited to 'sys/kern/kern_exit.c')
| -rw-r--r-- | sys/kern/kern_exit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 1526ce6118f..b190eb6a7ac 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.170 2018/10/04 20:07:54 kettenis Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.171 2018/11/12 15:09:17 visa Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -186,6 +186,8 @@ exit1(struct proc *p, int rv, int flags) #endif if ((p->p_flag & P_THREAD) == 0) { + sigio_freelist(&pr->ps_sigiolst); + /* close open files and release open-file table */ fdfree(p); |
