remove duplicates from pids array

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>