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@lists.xen.org http://lists.xen.org/xen-devel