* lisp/desktop.el (desktop-read): Claim the lock when the owner is not the current process.
Showing with 6 additions and 1 deletion
|...||...||@@ -1108,7 +1108,7 @@ Using it may cause conflicts. Use it anyway? " owner)))))|
|(setq desktop-file-modtime (nth 5 (file-attributes (desktop-full-file-name))))|
|;; If it wasn't already, mark it as in-use, to bother other|
|;; desktop instances.|
|(unless (eq (emacs-pid) owner)|
|(file-error (message "Couldn't record use of desktop file")|