diff options
author | 2017-03-05 06:40:18 +0000 | |
---|---|---|
committer | 2017-03-05 06:40:18 +0000 | |
commit | 170a9dfdfa1e130debdee404eb3ad2b5a9b3d93f (patch) | |
tree | 19ec38a72ebde652b2e796b0073b5013f25677fb | |
parent | Update to unicode 8 (diff) | |
download | wireguard-openbsd-170a9dfdfa1e130debdee404eb3ad2b5a9b3d93f.tar.xz wireguard-openbsd-170a9dfdfa1e130debdee404eb3ad2b5a9b3d93f.zip |
We've fixed PID handling, so update the comment describing ps_mainproc
-rw-r--r-- | sys/sys/proc.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index fe2d97a1a0b..6d3385b4616 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.h,v 1.235 2017/02/14 10:31:15 mpi Exp $ */ +/* $OpenBSD: proc.h,v 1.236 2017/03/05 06:40:18 guenther Exp $ */ /* $NetBSD: proc.h,v 1.44 1996/04/22 01:23:21 christos Exp $ */ /*- @@ -147,12 +147,9 @@ struct tusage { #ifdef __need_process struct process { /* - * ps_mainproc is the main thread in the process. - * Ultimately, we shouldn't need that, threads should be able to exit - * at will. Unfortunately until the pid is moved into struct process - * we'll have to remember the main threads and abuse its pid as the - * the pid of the process. This is gross, but considering the horrible - * pid semantics we have right now, it's unavoidable. + * ps_mainproc is the original thread in the process. + * It's only still special for the handling of p_xstat and + * some signal and ptrace behaviors that need to be fixed. */ struct proc *ps_mainproc; struct ucred *ps_ucred; /* Process owner's identity. */ |