[email protected]
[Top] [All Lists]

PERFORCE change 113819 for review

Subject: PERFORCE change 113819 for review
From: Roman Divacky
Date: Thu, 1 Feb 2007 09:15:54 GMT
http://perforce.freebsd.org/chv.cgi?CH=113819

Change 113819 by [email protected]_witten on 2007/02/01 09:15:53

        Reparent all procs that are part of a threading group but not its 
leaders
        to init and SIGCHLD init to finish the zombies off. This fixes zombies
        left after opera's exit.
        
        Noticed by: Scott Robbins <[email protected]>

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#29 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#29 
(text+ko) ====

@@ -165,6 +165,17 @@
 
        KASSERT(em != NULL, ("proc_exit: emuldata not found.\n"));
 
+       /* reparent all procs that are not a thread leader to initproc */
+       if (em->shared->group_pid != p->p_pid) {
+               sx_xlock(&proctree_lock);
+               wakeup(initproc);
+               PROC_LOCK(p);
+               proc_reparent(p, initproc);
+               p->p_sigparent = SIGCHLD;
+               PROC_UNLOCK(p);
+               sx_xunlock(&proctree_lock);
+       }
+
        child_clear_tid = em->child_clear_tid;
 
        EMUL_UNLOCK(&emul_lock);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/p4-projects
To unsubscribe, send any mail to "[email protected]"

<Prev in Thread] Current Thread [Next in Thread>
  • PERFORCE change 113819 for review, Roman Divacky <=