read can be interrupted workaround it to make siginfo work again