35fb512728
find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.