aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorMariusz Zaborski <oshogbo@FreeBSD.org>2019-08-05 20:11:57 +0000
committerMariusz Zaborski <oshogbo@FreeBSD.org>2019-08-05 20:11:57 +0000
commit799d92ab784c346a539844a882ce2e5d05e3d6b0 (patch)
tree7ea36fe955a862396e442d13cbc80f7dc9c47ff4 /sys/sys/proc.h
parent41fadb3fca6feff88f3dfc0e141f7cbf9306080b (diff)
downloadsrc-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/proc.h')
-rw-r--r--sys/sys/proc.h1
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);