WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH]do not allow multiple xenconsole connect to the s

To: Li Dongyang <lidongyang@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH]do not allow multiple xenconsole connect to the same pty
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Tue, 15 Feb 2011 19:40:04 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 15 Feb 2011 11:41:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201102151207.38331.lidongyang@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <201102151207.38331.lidongyang@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Li Dongyang writes ("[Xen-devel] [PATCH]do not allow multiple xenconsole 
connect to the same pty"):
> allowing multiple xenconsole connect to the same pty is just insane,
> prevent this by acquiring a write flock on the pty fd once we opened it.

I don't think that flocking a pty is likely to be very portable.

I guess what happens at the moment if you do this is that input is
interleaved (fine) but output is distributed randomly amongst the
available clients ?

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel