In [bugs:#66] the ever-helpful "Anonymous" reported that
fuser with -k would only return correctly if the process
was found last and not if it was found anywhere.
While I have solved this problem a different way, the report
was enough to narrow down what was going wrong. Now fuser -k
returns 1 if it finds any process to kill, not just if the last
one was; just like fuser with no -k works.
Signed-off-by: Craig Small <csmall@enc.com.au>
}
} /* be silent */
if (opts & OPT_KILL)
- have_kill = kill_matched_proc(nptr->matched_procs,
+ have_kill |= kill_matched_proc(nptr->matched_procs,
opts, sig_number);
} /* next name */