Page MenuHomeFreeBSD

D27816.1790277761.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D27816.1790277761.diff

Index: sys/kern/kern_proc.c
===================================================================
--- sys/kern/kern_proc.c
+++ sys/kern/kern_proc.c
@@ -866,7 +866,7 @@
if (isjobproc(jobc_parent(p), pgrp))
pgadjustjobc(pgrp, true);
LIST_FOREACH(q, &p->p_children, p_sibling) {
- if ((q->p_treeflag & P_TREE_ORPHANED) != 0)
+ if (jobc_parent(q) != p)
continue;
fixjobc_enterpgrp_q(pgrp, p, q, true);
}
@@ -876,7 +876,7 @@
if (isjobproc(jobc_parent(p), p->p_pgrp))
pgadjustjobc(p->p_pgrp, false);
LIST_FOREACH(q, &p->p_children, p_sibling) {
- if ((q->p_treeflag & P_TREE_ORPHANED) != 0)
+ if (jobc_parent(q) != p)
continue;
fixjobc_enterpgrp_q(pgrp, p, q, false);
}
@@ -937,14 +937,14 @@
* adjust counts for children's process groups.
*/
LIST_FOREACH(q, &p->p_children, p_sibling) {
- if ((q->p_treeflag & P_TREE_ORPHANED) != 0)
+ if (jobc_parent(q) != p)
continue;
fixjobc_kill_q(p, q, true);
}
LIST_FOREACH(q, &p->p_orphans, p_orphan)
fixjobc_kill_q(p, q, true);
LIST_FOREACH(q, &p->p_children, p_sibling) {
- if ((q->p_treeflag & P_TREE_ORPHANED) != 0)
+ if (jobc_parent(q) != p)
continue;
fixjobc_kill_q(p, q, false);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 24, 7:22 PM (4 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29904919
Default Alt Text
D27816.1790277761.diff (1 KB)

Event Timeline