[lkml]   [2007]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: init's children list is long and slows reaping children.
    On 04/10, Eric W. Biederman wrote:

    > I'm trying to remember what the story is now. There is a nasty
    > race somewhere with reparenting, a threaded parent setting SIGCHLD to
    > SIGIGN, and non-default signals that results in an zombie that no one
    > can wait for and reap. It requires being reparented twice to trigger.



    /* If we'd notified the old parent about this child's death,
    * also notify the new parent.
    if (!traced && p->exit_state == EXIT_ZOMBIE &&
    p->exit_signal != -1 && thread_group_empty(p))
    do_notify_parent(p, p->exit_signal);

    We notified /sbin/init. If it ignores SIGCHLD, we should release the task.
    We don't do this.

    The best fix I believe is to cleanup the forget_original_parent/reparent_thread
    interaction and factor out this "exit_state == EXIT_ZOMBIE && exit_signal == -1"


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-04-10 18:47    [W:0.020 / U:13.104 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site