sj: rename subprocess function and remove useless macro