Skip to content

Commit d178d93

Browse files
authored
Merge pull request #2554 from lukaszwojciechowski/master
Fix segfault caused double erase from child_pid rb tree
2 parents 939579d + e15990e commit d178d93

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/scheduler.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2210,7 +2210,6 @@ process_child_termination(pid_t pid, int status)
22102210
* and it is still on the thread->ready queue. Since we have now got
22112211
* the termination, just handle the termination instead. */
22122212
thread->type = THREAD_CHILD_TERMINATED;
2213-
rb_erase(&thread->rb_data, &master->child_pid);
22142213
}
22152214
else
22162215
thread_move_ready(m, &m->child, thread, THREAD_CHILD_TERMINATED);

0 commit comments

Comments
 (0)