Re: [PATCH 4/5] don't panic if /sbin/init exits or killed

From: Alan Cox
Date: Sun Mar 16 2008 - 19:11:50 EST


> Well, I think the generic "if we have a chance to survive, we should try
> to survive" rule is good.
>
> If the boot init dies, at least the admin has a chance to figure out what
> has happened, and -o remount,ro /.

A long long time ago someone posted a patch which arranged that if the
init process died it got respawned via the same list of process names as
happens on boot.

Or for that matter we could catch the dying init and replace it with a
kernel side while(1) wait(NULL); so that we at least continue the cleanup.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/