Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142082709
D27816.id81320.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D27816.id81320.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 16, 9:21 PM (16 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27669792
Default Alt Text
D27816.id81320.diff (1 KB)
Attached To
Mode
D27816: jobc: correct check for ignored children.
Attached
Detach File
Event Timeline
Log In to Comment