On Saturday 09 May 2015, Jan Engelhardt wrote:
On Saturday 2015-05-09 12:18, Ruediger Meier wrote:
On armv6l and aarch64 I've noticed that we have strange process names in /proc/PID/*. It's always "qemu-arm" or "qemu-arm64".
For example running in bash we get:
$ cat /proc/$$/status | grep "Name:" qemu-arm $ ls -l /proc/$$/exe lrwxrwxrwx 1 abuild abuild 0 May 9 09:53 /proc/5526/exe -> /usr/bin/qemu-arm $ cat /proc/$$/cmdline /usr/bin/qemu-arm-0bash/bin/bash/home/abuild/rpmbuild/SOURCES/build_ host_info.sh
Is it possible to get this fixed?
Note that the contents of $$/cmdline are dependent on program memory, and that a program is free to modify the bytes referenced by argv.
perl -e '$0 = "foo"; system "cat /proc/$$/cmdline";'
Yes this shows "foo". But /proc/PID/comm does not. BTW the programs I've tested do not change argv.
Doing so does not change the fact that you are still running the same executable, hence the "exe" symlinks stays the same.
It does not show the executed binary.
(Notabug.)
cu, Rudi -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org