zero bytes are returned. Since we are using blocking
read calls, and the net_read function deals with
interrupted/resumed reads, consider zero bytes to be
be a terminated connection, so as not to spin.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7749
dc483132-0cff-0310-8789-
dd5450dbe970
+Wed Apr 3 17:09:19 1996 Richard Basch <basch@lehman.com>
+
+ * krlogind.c: Under Solaris, when the connection pipe goes away,
+ zero bytes are returned. Since we are using blocking
+ read calls, and the net_read function deals with
+ interrupted/resumed reads, consider zero bytes to be
+ be a terminated connection, so as not to spin.
+
Mon Apr 1 10:12:44 1996 Richard Basch <basch@lehman.com>
* loginpaths.h: Leading/trailing colons should not be there based
*/
do {
cc = krb_net_read(fd, &c, 1);
- if (cc < 0) return 0; /* read error */
+ if (cc <= 0) return 0; /* read error */
if (cc == 1) {
if (c == 0) gotzero = 1;
}