I just could reproduce another case where pidof with the argument being a full path to a binary doesn't return a pid. It is not related to the argument being a symlink.

This time it seems to be related to the program having been started with arguments but I don't see the unexpected behaviour with just any arguments, just some.

For example, when having gdb running with "gdb --core=corefile" "pidof $(which gdb)" does not return a pid but when I start gdb with "gdb --quiet" "pidof $(which gdb)" behaves as expected.

Reply via email to