Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269310AbUJFRmX (ORCPT ); Wed, 6 Oct 2004 13:42:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269318AbUJFRmX (ORCPT ); Wed, 6 Oct 2004 13:42:23 -0400 Received: from mail.kroah.org ([69.55.234.183]:37298 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S269310AbUJFRmU (ORCPT ); Wed, 6 Oct 2004 13:42:20 -0400 Date: Wed, 6 Oct 2004 10:41:08 -0700 From: Greg KH To: Alan Cox Cc: Russell King , J?rn Engel , Andrew Morton , Linux Kernel Mailing List Subject: Re: [PATCH] Console: fall back to /dev/null when no console is availlable Message-ID: <20041006174108.GA26797@kroah.com> References: <20041005185214.GA3691@wohnheim.fh-wedel.de> <20041005212712.I6910@flint.arm.linux.org.uk> <20041005210659.GA5276@kroah.com> <20041005221333.L6910@flint.arm.linux.org.uk> <1097074822.29251.51.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1097074822.29251.51.camel@localhost.localdomain> User-Agent: Mutt/1.5.6i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 25 On Wed, Oct 06, 2004 at 04:00:23PM +0100, Alan Cox wrote: > 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. 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? Any opinions? thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/