diff options
author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2019-08-05 20:11:57 +0000 |
---|---|---|
committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2019-08-05 20:11:57 +0000 |
commit | 799d92ab784c346a539844a882ce2e5d05e3d6b0 (patch) | |
tree | 7ea36fe955a862396e442d13cbc80f7dc9c47ff4 /sys/sys | |
parent | 41fadb3fca6feff88f3dfc0e141f7cbf9306080b (diff) | |
download | src-799d92ab784c346a539844a882ce2e5d05e3d6b0.tar.gz src-799d92ab784c346a539844a882ce2e5d05e3d6b0.zip |
proc: introduce the proc_add_orphan function
This API allows adding the process to its parent orphan list.
Reviewed by: kib, markj
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=350611
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/proc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h index feaa64af654c..b6037f5b00f8 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -1069,6 +1069,7 @@ void proc_linkup(struct proc *p, struct thread *td); struct proc *proc_realparent(struct proc *child); void proc_reap(struct thread *td, struct proc *p, int *status, int options); void proc_reparent(struct proc *child, struct proc *newparent, bool set_oppid); +void proc_add_orphan(struct proc *child, struct proc *parent); void proc_set_traced(struct proc *p, bool stop); void proc_wkilled(struct proc *p); struct pstats *pstats_alloc(void); |