Improved the use of the "remaining" var in readfd_unbuffered() to