From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#56800: Pointless "Warning: desktop file appears to be in use by PID ###." Date: Wed, 27 Jul 2022 18:25:24 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e6536305e4cbdd71" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="905"; mail-complaints-to="usenet@ciao.gmane.io" To: 56800@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 18:26:37 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGjrp-000AeL-FB for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 18:26:37 +0200 Original-Received: from localhost ([::1]:36020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGjrm-0005yI-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 12:26:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGjrG-0005vA-Tk for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38886) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGjrG-0006Bn-K3 for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGjrG-0000v5-F9 for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 16:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56800 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16589391423501 (code B ref -1); Wed, 27 Jul 2022 16:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jul 2022 16:25:42 +0000 Original-Received: from localhost ([127.0.0.1]:56868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGjqw-0000uP-0F for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:25:42 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGjqu-0000uF-2x for submit@debbugs.gnu.org; Wed, 27 Jul 2022 12:25:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGjqt-0005PV-RI for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:25:39 -0400 Original-Received: from mail-yb1-xb31.google.com ([2607:f8b0:4864:20::b31]:43536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGjqs-00068Y-3H for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 12:25:39 -0400 Original-Received: by mail-yb1-xb31.google.com with SMTP id o15so2956678yba.10 for ; Wed, 27 Jul 2022 09:25:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=ncd81vIdG6LlZo2g5bjlIsP4qOquc+5ft82YO4g5wnA=; b=SNa87sEXBzZKo9CgmYOJX5/9wxLOTZxoq8vRt2ZK/+xXDU6qfqinYuoI0q5+oUsGSz +5ZH0vdRCTGl9Kr1YYHbd3pCInDStdV1YdKuWeRvIoz6Ir1qyAWB6ZJBYCF5q2pRK1WW IBT4P1tXIdubFgIOihjg68Fw7uhaRjXGtrUNC1R/o/L031OL2X0I7kfqnLnywYdQI9CX vT7Adx36JnR96cpxbD0nnE8uXM532Fnu38y3e2cYjQKVTL3TMuh0giHIv/r51aXLwesR KKACX3N/uFWbBT+uWnV/zuvLQOkTev6uUPYPbUtA5nyCJfQnO9i8ZTLJhkU9yZ/TRT1V ASyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ncd81vIdG6LlZo2g5bjlIsP4qOquc+5ft82YO4g5wnA=; b=VXg2/doBC1DKQB/AFkVvWi1HKMhMUgYj1tbdAnS5YPGNQL5DvaE6zkc6iNSQyAdarw vhcezhZUHsOHHCUQ9kENFuFI7mcnNpSGiIeaTz3KK0ywDCZ3/U06s07e0wq+Z1BsACjt SY8nyWuW6v7VwWVmDTgo1vQvQ67hGJ6Qh/PI6XiZjxePUMlOpDVNL8RxeJL8eY4/jW8t vQVf7kGvrQBXd+QG6Uhm6hXsXUCQqN7Eky5DrHIBDAosg5xGsm5UX4zpFKd6quWQqT8c L1Iv/bjhGgfTJe0KcKnbCBuJTXmSjXO82+qPdMsD0WrSCwVd4WzwJxA/lZNCXyGeepd7 hnpw== X-Gm-Message-State: AJIora+YVFbYB0nFrRE5qmKzUexuBqbbn3iBsKSmN44IujOCYzdKY1Ln 7T3sUA96f022liRPktLu7sAHbINwyPzhX8O0M/HEqic= X-Google-Smtp-Source: AGRyM1u/Ly7BhgXO6eQwN6g3RTJOYNIMN1mNxrHCYBTM70YzK66ZcOiIQHcUUS8puQU0ZcNCx2GbAl4vXmqFtBnNOCA= X-Received: by 2002:a05:6902:1021:b0:670:c012:7f4e with SMTP id x1-20020a056902102100b00670c0127f4emr18720666ybt.357.1658939135905; Wed, 27 Jul 2022 09:25:35 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::b31; envelope-from=pogonyshev@gmail.com; helo=mail-yb1-xb31.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238049 Archived-At: --000000000000e6536305e4cbdd71 Content-Type: text/plain; charset="UTF-8" GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.33, cairo version 1.16.0) of 2022-07-26 Practically every time I start up Emacs, I get this pointless warning and a question if I really want to use the desktop file anyway. If there were actually another Emacs running, this warning would be fine, even useful. However, in 95% of cases here it happens because computer was shut down, Emacs crashed etc. In fact, I have just now verified that even if I cleanly `M-x kill-emacs RET' my Emacs and then start a new one, the new still thinks that the old, killed Emacs might still be using the desktop file somehow (i.e. PID is that of the previous Emacs process). The code in `desktop.el' should really check if the process with that PID still exists before claiming that it might be using the desktop file somehow. Paul --000000000000e6536305e4cbdd71 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Vers= ion 2.24.33, cairo version 1.16.0) of 2022-07-26

Practic= ally every time I start up Emacs, I get this pointless warning and a questi= on if I really want to use the desktop file anyway. If there were actually = another Emacs running, this warning would be fine, even useful. However, in= 95% of cases here it happens because computer was shut down, Emacs crashed= etc. In fact, I have just now verified that even if I cleanly `M-x kill-em= acs RET' my Emacs and then start a new one, the new still thinks that t= he old, killed Emacs might still be using the desktop file somehow (i.e. PI= D is that of the previous Emacs process).

The code= in `desktop.el' should really check if the process with that PID still= exists before claiming that it might be using the desktop file somehow.

Paul
--000000000000e6536305e4cbdd71--