Fix interface to open_process_all to return accum value

We don't strictly need this, but makes the code easier to test and
fits a more standard pattern.