There is also possibility to use `pcntl_sigprocmask()` and `pcntl_sigtimedwait()`, but that requires proc mask reset on every new job and setting it back.