|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH]do not allow multiple xenconsole connect to the s
On Tue, 15 Feb 2011 19:40:04 +0000
Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> 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.
>
> 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 ?
Use POSIX pty interfaces and you don't get these problems. See
grantpt/unlockpt/posix_openpt.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|