handle signal masks between parent and child better