Subject: bug#73318: 31.0.50; with-native-compilation=aot breaks exec -a emacs

From: Po Lu <[email-masked]>
Date: Thu, 19 Sep 2024 21:44:21 +0800

Ship Mints <[email-masked]> writes:

> 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.

It is possible to run systems with Linux (the kernel) without mounting
/proc at all, and Emacs is very much interested in functioning correctly
there.  Moreover, the value of /proc/self/exe is sometimes completely
meaningless, as on Android, where Emacs is loaded into
/system/bin/app_process64 as a shared library.