From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1ScfSw-0005N1-Nk for user-mode-linux-devel@lists.sourceforge.net; Thu, 07 Jun 2012 16:21:42 +0000 Received: from mga01.intel.com ([192.55.52.88]) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1ScfSr-0003PY-4y for user-mode-linux-devel@lists.sourceforge.net; Thu, 07 Jun 2012 16:21:42 +0000 Date: Thu, 7 Jun 2012 17:37:11 +0100 From: Alan Cox Message-ID: <20120607173711.22ae146f@bob.linux.org.uk> In-Reply-To: <4FD0C64D.2050302@nod.at> References: <1338841657-30358-1-git-send-email-richard@nod.at> <4FCF6748.6020005@panasas.com> <4FD059AC.8050808@panasas.com> <4FD06A22.6040002@nod.at> <4FD07F14.50902@panasas.com> <4FD0802A.1020203@nod.at> <20120607115227.6643d1ad@pyramind.ukuu.org.uk> <4FD0C64D.2050302@nod.at> Mime-Version: 1.0 List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net Subject: Re: [uml-devel] um: TTY fixes (?) To: Richard Weinberger Cc: user-mode-linux-devel@lists.sourceforge.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, jslaby@suse.cz, Alan Cox On Thu, 07 Jun 2012 17:18:37 +0200 Richard Weinberger wrote: > Alan, Jiri! > > If I omit ->hangup(), mingetty (And all other getty implementations) > are unable to open /dev/ttyX. open() returns -EIO. > Currently I'm testing it on FC12. > Also if I do something like "echo foo >/dev/tty1" it fails with -EIO. > And now the strange thing, opening and writing an unknown (unknown to > this upstart rubbish) tty works. E.g.: echo foo >/dev/tty10. > > Any ideas what's going wrong? Yes I know exactly what is going on. However getting a more tolerant behaviour is going to take a couple more kernels. Alan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754152Ab2FGQVb (ORCPT ); Thu, 7 Jun 2012 12:21:31 -0400 Received: from mga01.intel.com ([192.55.52.88]:20329 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751176Ab2FGQV3 (ORCPT ); Thu, 7 Jun 2012 12:21:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="176197207" Date: Thu, 7 Jun 2012 17:37:11 +0100 From: Alan Cox To: Richard Weinberger Cc: Alan Cox , Boaz Harrosh , user-mode-linux-devel@lists.sourceforge.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, jslaby@suse.cz Subject: Re: [uml-devel] um: TTY fixes (?) Message-ID: <20120607173711.22ae146f@bob.linux.org.uk> In-Reply-To: <4FD0C64D.2050302@nod.at> References: <1338841657-30358-1-git-send-email-richard@nod.at> <4FCF6748.6020005@panasas.com> <4FD059AC.8050808@panasas.com> <4FD06A22.6040002@nod.at> <4FD07F14.50902@panasas.com> <4FD0802A.1020203@nod.at> <20120607115227.6643d1ad@pyramind.ukuu.org.uk> <4FD0C64D.2050302@nod.at> Organization: Intel X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Organisation: Intel Corporation UK Ltd, registered no. 1134945 (England), Registered office Pipers Way, Swindon, SN3 1RJ Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 07 Jun 2012 17:18:37 +0200 Richard Weinberger wrote: > Alan, Jiri! > > If I omit ->hangup(), mingetty (And all other getty implementations) > are unable to open /dev/ttyX. open() returns -EIO. > Currently I'm testing it on FC12. > Also if I do something like "echo foo >/dev/tty1" it fails with -EIO. > And now the strange thing, opening and writing an unknown (unknown to > this upstart rubbish) tty works. E.g.: echo foo >/dev/tty10. > > Any ideas what's going wrong? Yes I know exactly what is going on. However getting a more tolerant behaviour is going to take a couple more kernels. Alan