Due to this bug we mishandled the case where the read() returns zero
to indicate EOF. In this case we stuffed a random character instead
of shutting down the i9e task.
ret = -ERRNO_TO_PARA_ERROR(errno);
goto rm_btrn;
}
ret = -ERRNO_TO_PARA_ERROR(errno);
goto rm_btrn;
}
- ret = -E_I9E_EOF;
- if (ret == 0)
+ if (ret == 0) {
+ ret = -E_I9E_EOF;
buf[1] = '\0';
i9ep->key_sequence_length++;
rl_stuff_char((int)(unsigned char)*buf);
buf[1] = '\0';
i9ep->key_sequence_length++;
rl_stuff_char((int)(unsigned char)*buf);