Re: [PATCH] Console: fall back to /dev/null when no console is availlable

From: Andries Brouwer
Date: Wed Oct 06 2004 - 13:18:40 EST


On Wed, Oct 06, 2004 at 10:41:08AM -0700, Greg KH wrote:

> Good point. So, should we do it in the kernel, in call_usermodehelper,
> so that all users of this function get it correct, or should I do it in
> userspace, in the /sbin/hotplug program?

The doctrine of defensive programming will teach you to write
/sbin/hotplug so that it can cope with such things.

(But I do not object at all to also doing it in the kernel.
Some would call it "papering over user space bugs", but one might
as well call it "making the system more robust".)

Andries
-
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/