Replaced calls to the deprecated unix siginterrupt function.