patch to fix [omkmigd] <defunct>

"Matt Dew" <[email protected]>
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Here's a patch to fix the defunct processes.  Please review.

Matt

--- ../openmosix-2.6/kernel/exit.c      2006-04-04 09:21:46.000000000 -0600
+++ kernel/exit.c       2006-04-19 11:23:17.000000000 -0600
@@ -854,6 +854,11 @@
        }
 #ifdef CONFIG_OPENMOSIX
        openmosix_task_exit();
+        if (task_test_dflags(tsk, DREMOTE)) {
+                printk(KERN_INFO "remote process %d: reparenting to init\n", tsk->pid);
+               reparent_to_init();
+        }
+
 #endif
        group_dead = atomic_dec_and_test(&tsk->signal->live);
        if (group_dead) {


>>> Vincent Hanquez <tab-mTI/[email protected]>  >>>
On Wed, Apr 19, 2006 at 09:36:17AM +0200, Ralf Oelschlaegel wrote:
> Another problem is the "[omkmigd] <defunct>" on a remote node if a process 
> is migrate back to home node.

That's not really a problem. The zombie is hanging around because nobody
(its parent, which is omkmigd) didn't bother to slaughter him ;)

I think just a reparent_to_init just before exiting should do the job.

-- 
Vincent Hanquez


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
om-patch (application/octet-stream, 469 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.