From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master b4f504a0ea: Load desktop without prompting if process is dead Date: Sat, 26 Mar 2022 10:30:11 +0300 Message-ID: <83bkxtb27w.fsf@gnu.org> References: <83o81vcslp.fsf@gnu.org> <878rsyf3vl.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24933"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Mar 26 08:32:00 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nY0tz-0006Kl-Gg for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Mar 2022 08:31:59 +0100 Original-Received: from localhost ([::1]:51370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY0ty-0006oA-3N for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Mar 2022 03:31:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY0sX-0005yD-Mx for emacs-devel@gnu.org; Sat, 26 Mar 2022 03:30:33 -0400 Original-Received: from [2001:470:142:3::e] (port=47700 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY0sW-0003E2-4U; Sat, 26 Mar 2022 03:30:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Ww3QvWKnWosJDyW6WaUx0uJBoj981707DfVMUBqyIns=; b=MQZwFRUbiIN2 nt8d66NOUeV96HQr98q/FkpYGrgLZpeguHzlcvDrdXUkTZhUuOL363y9TzTYIAk3eqJzxSN8BoiK1 Ot45bdM4yGJSEaWeIXcGFLaqo7ZffmWnTF6VbLYUoGySeEh1MitkiiFDumSzQYVFAwbMN8dsYSxZt wlnA0QsXI9HXA/NIH3p6nxThRXDet/EcCbfOxKTXofa5XiqptxdJh55CDk9EtTcwa5dwwtiMSNEqS hogH3zc7piNbjgmotfCHR62gQ/FZDvc1deap3FJu6HdHqflxeayTTJL+s/542nb5W1AeyIQ79jK6v 92J8STZ9raFCH8lucQVL1Q==; Original-Received: from [87.69.77.57] (port=1813 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY0sI-0000LD-Ak; Sat, 26 Mar 2022 03:30:25 -0400 In-Reply-To: <878rsyf3vl.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 25 Mar 2022 16:28:30 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:287474 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Fri, 25 Mar 2022 16:28:30 +0100 > > Eli Zaretskii writes: > > > This assumes that command-line-args resolves symlinks in the Emacs > > program's name? Or that the 'comm' attribute in process-attributes > > does NOT resolve symlinks? Because otherwise the above will cause > > false negatives. > > It's a heuristic -- I don't think there's any real way to reliably find > other running Emacs processes. They could be called anything. But > it'll work in the default case, which is what matters here, I think. > > > And on Windows, there's the issue of the ".exe" > > extension, which could be in one, but not the other, I think? > > Yes, perhaps that should be adjusted. I installed a fix, please take a look.