Fix signal blocking code.