p->p_opptr = child_reaper;

About this list Date view Thread view Subject view Author view Attachment view

From: Sam Vilain (sam_at_vilain.net)
Date: Thu Jan 31 2002 - 10:44:07 EST


exit.c seems to be different in 2.4.18-pre7 than in 2.4.17:

        for_each_task(p) {
                if (p->p_opptr == father) {
                        /* We dont want people slaying init */
                        p->exit_signal = SIGCHLD;
                        p->self_exec_id++;

                        /* Make sure we're not reparenting to ourselves */
                        if (p == reaper)
                                p->p_opptr = child_reaper;
                        else
                                p->p_opptr = reaper;

                        if (p->pdeath_signal) send_sig(p->pdeath_signal, p, 0);
                }
        }

This patch doesn't apply:

***************
*** 167,171 ****
                        p->exit_signal = SIGCHLD;
                        p->self_exec_id++;
! p->p_opptr = child_reaper;
                        if (p->pdeath_signal) send_sig(p->pdeath_signal, p, 0);
                }
--- 176,180 ----
                        p->exit_signal = SIGCHLD;
                        p->self_exec_id++;
! p->p_opptr = reaper;
                        if (p->pdeath_signal) send_sig(p->pdeath_signal, p, 0);
                }

Can anyone tell me what's happening here?

Sam.


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:00 EDT