From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r116304: * lisp/desktop.el (desktop-read): Claim the lock when the owner is not the current process. Date: Sat, 08 Feb 2014 12:35:41 +0200 Organization: JURTA Message-ID: <87bnyhops2.fsf@mail.jurta.org> References: <83eh3eyjvs.fsf@gnu.org> <87iosqsntr.fsf@mail.jurta.org> <87a9e1q5h5.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391855800 32385 80.91.229.3 (8 Feb 2014 10:36:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 10:36:40 +0000 (UTC) Cc: Eli Zaretskii , Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 08 11:36:48 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC5HD-0005Gv-Aw for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 11:36:47 +0100 Original-Received: from localhost ([::1]:46042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC5HC-0006gj-OG for ged-emacs-devel@m.gmane.org; Sat, 08 Feb 2014 05:36:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC5H4-0006g2-Js for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:36:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WC5Gy-0005Kt-FN for emacs-devel@gnu.org; Sat, 08 Feb 2014 05:36:38 -0500 Original-Received: from [69.163.184.122] (port=50555 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC5Gs-0005J4-4t; Sat, 08 Feb 2014 05:36:26 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 78B79301C9E5C7; Sat, 8 Feb 2014 02:36:24 -0800 (PST) In-Reply-To: (Juanma Barranquero's message of "Sat, 8 Feb 2014 11:21:51 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 69.163.184.122 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169486 Archived-At: >> The problem was that when a session crashes, all subsequent sessions >> can't auto-save the desktop since they didn't take the lock >> from the crashed session. > > Surely I'm missing something, but what good is the lock if subsequent > sessions can steal it even if the corresponding Emacs is still > running? Maybe we need a separate question in addition to the existing question 1. "Warning: desktop file appears to be in use by PID %s. Using it may cause conflicts. Use it anyway? " something like 2. "Claim the lock from PID %s to take the ownership of the desktop file? "