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

Re: [Xen-devel] [PATCH v2] xenconsole: Ensure exclusive access to console using locks



Martin Lucina writes ("[PATCH v2] xenconsole: Ensure exclusive access to 
console using locks"):
> If more than one instance of xenconsole is run against the same DOMID
> then each instance will only get some data. This change ensures
> exclusive access to the console by obtaining an exclusive lock on
> <XEN_LOCK_DIR>/xenconsole.<DOMID>.
...
> +static void console_unlock(void)
> +{
> +     if (lockfile[0])
> +             unlink(lockfile);
> +     if (lockfd != -1)
> +             close(lockfd);
> +}

If called when unlocked this could unlink the lockfile anyway.

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®.