Even if you umount /proc, it will remain until active process references to /proc nodes are closed. If one tries umount /proc outside of a shutdown sequence, Emacs is the least of her worries. This is not a practical deterrent. On Wed, Sep 18, 2024 at 11:09 PM Po Lu wrote: > Eli Zaretskii writes: > > > And I will see your humility and raise ya. Please describe your ideas > > for the patch before actually writing the code. Because there's more > > here than meets the eye. Some issues the related code needs to > > handle: > > > > . what if /proc/self/exe is unreadable? AFAIK, on some systems you > > need special privileges to follow its symlink > > Above all, /proc is liable simply to be unmounted. >