[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master b4f504a0ea: Load desktop without prompting if process is dead
From: |
Lars Ingebrigtsen |
Subject: |
Re: master b4f504a0ea: Load desktop without prompting if process is dead |
Date: |
Fri, 25 Mar 2022 16:28:30 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> 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.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no