lib/process: Add process helpers