On Thu, 21 Oct 2021, Jesse Smith wrote: > "pidof -z <process name>" should return all matching processes, > including those in the zombie state. > > The attached patch also cleans up some code we don't need as a result of > this change and updates the man page. > > Please give the attached patch a try and confirm it's working. It's > working here for normal and zombie processes and it seems to be okay for > uninterruptable sleep processes too, but I'd like to have someone else > confirm everything looks right before I push this upstream.
It works for basic usage of `pidof find`, `pidof dd`, etc, but I can't confirm nor deny whether it breaks system shutdown for people using sysvinit in the presence of broken remote mounts. -- Tim Connors