[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



On Wednesday, February 16, 2011 03:40:04 AM Ian Jackson wrote:
> 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.
Thanks for reviewing, and what do you mean by 'not likely to be very portable'?
flock(2) is not POSIX, but fcntl(3p) is POSIX, maybe I missed somthing?

Li Dongyang
> 
> 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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.