Hello, The pgrep can't match the comm property of a process, which pidof can do. Here is my patch. thanks for your BusyBox. 1 153c153 2 < char *cmd; 3 --- 4 > char *cmd, *comm; 5 159,161c159,160 6 < if (!cmd) { 7 < cmd = proc->comm; 8 < } else { 9 --- 10 > comm = proc->comm; 11 > if (cmd) { 12 176c175,176 13 < || (regexec(&re_buffer, cmd, 1, re_match, 0) == 0 /* match found */ 14 --- 15 > || (((cmd && regexec(&re_buffer, cmd, 1, re_match, 0) == 0) 16 > || regexec(&re_buffer, comm, 1, re_match, 0) == 0) /* match found */
Fixed in git, thanks!