Skip to content

pidof: MR !101 requires empty program string check

Jan Rybar requested to merge jrybar/procps:pidof-empty-arg-str-check into master

With pidof now showing kernel worker threads, a new issue was revealed as running '$ pidof "" ' now lists all kernel worker threads. This was happening because threads that have task.cmd=='\0' match empty 'program' string. No check after pidof start is being done until now.

Merge request reports