Bug#851729: hurd: exe filename missing for some processes
I was improving the support to get the process executable in
start-stop-daemon to use the new libps proc_stat_set_flags PSTAT_EXE
attribute, instead of having to use argv, and while testing I
noticed that several processes return empty filenames, which makes
this unreliable to use. :/
This is visible from the libps API and from /proc:
for l in /proc/*/exe; do n=$(readlink $l); test -z "$n" || continue;\
echo "$l -> '$n'"; grep Name: /proc/$(echo $l|cut -d/ -f3)/status;\
/proc/12/exe -> ''
/proc/2/exe -> ''
/proc/3/exe -> ''
/proc/4/exe -> ''
/proc/5/exe -> ''
/proc/575/exe -> ''
/proc/6/exe -> ''
/proc/601/exe -> ''
/proc/7/exe -> ''