changed from sigwait to sigaction