Re: [PATCH 2/4] signals: send_signal: use si_fromuser() to detectfrom_ancestor_ns
From: Roland McGrath
Date: Tue Oct 06 2009 - 14:02:56 EST
> Yes sure, init can't kill itself with or without these changes. But,
> I think this is supposed behaviour which we do not want to change?
I agree. (Actually, I think init shouldn't be "protected" that way at all.
You shoot downwards, you get your foot. But we are not talking about
changing the global init behavior, and I do think that the container-init
behavior should be as consistent as possible with what global init sees.)
It's possible to meaningfully swallow a kill() signal because then nothing
happens at all. The exec failure cases are special because all the damage
is already done so there is no way to avoid dying, and SIGKILL is just
making it more formal and graceful.
Thanks,
Roland
--
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/