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

Re: [Xen-devel] [PATCH] xenconsole: Allow non-interactive use



On Thu, 2015-07-23 at 17:09 +0200, Martin Lucina wrote:

> > But maybe it would be better to set max_fd = -1 on declaration and 
> > do
> > the max dance here as with the following cases?
> 
> Declaring max_fd = -1 is indeed clearer, I can do a v2 with that 
> change if you like.

If you are happy to then yes, please.

> One other bug that my change makes potentially easier to trigger is that
> you can run "xl console DOMID" multiple times with the same DOMID and the
> result is broken; each instance gets part of the data written to the
> console.
> 
> Any ideas on how to address this in a simple fashion?

Perhaps the client should take some exclusive lock (fcntl based?) on an
fd of an open file with domid in the name. Failure to get the lock
should result in the client exiting with some message indicating the
console is in use.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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