check the return value of `prctl`