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

Alan Cox
2004-10-06T16:03:15Z

On Maw, 2004-10-05 at 22:13, Russell King wrote:
> I'm redirecting them in the /sbin/hotplug script to something sane,
> but I think the kernel itself should be directing these three fd's
> to somewhere whenever it invokes any user program, even if it is
> /dev/null.

Someone should yes. There are lots of fascinating things happen when
hotplug opens a system file, it gets assigned fd 2 and then we write to
stderr.

> I think Alan disagrees with me, but I think the history that these
> types of problems _keep_ cropping up over and over is proof enough
> that it's necessary for sane userspace.

Userspace to userspace execution is quite precisely defined. What
happens for kernel->userspace isn't so I have no problem with the kernel
attaching hotplug to the system console.