test pselect signal mask and interrupt loop