replacing sighold/sigrelse with sigprocmask in AIX/Unix/Solaris/Linux