more changing of mask and signal handlers