pgrep fails to find ssh-agent
Running openssh 7.7 and procps-ng 3.3.13 on archlinux.
The /proc/pid/ns folder of ssh-agent is owned by root after starting it up (¿some kind of security improvement?), so pgrep is failing (or that's my guess from looking at the strace output).
Maybe the /proc/pid/status file can be used as a fallback for checking the user?
tsdgeos@xps:~:$ pidof ssh-agent 
1362
tsdgeos@xps:~:$ ps aux | grep ssh-agent
tsdgeos   1362  0.0  0.0  13468   404 ?        Ss   22:50   0:00 ssh-agent
tsdgeos@xps:~:$ pgrep -u tsdgeos ssh-agent
tsdgeos@xps:~:$