catching wrong exception for EINTR