Check for read() error condition or empty read, return -1 in case.  Added comments.
Check for read() error condition or empty read, return -1 in case.  Added
comments.

jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus