sigwaitを使う前にpthread_sigmaskでブロックしないといけない