Handle EAGAIN and EINTR correctly in silc_get_input in case of error