[tor-commits] [ooni-probe/master] Move check for running process into utility function