From: Richard Basch Date: Wed, 3 Apr 1996 22:24:03 +0000 (+0000) Subject: * krlogind.c: Under Solaris, when the connection pipe goes away, X-Git-Tag: krb5-1.0-beta6~262 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9eb1e1763959aeda890cab1a4ced67eae15c6f1a;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7749 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index a8be0ef88..3cdec7a68 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,11 @@ +Wed Apr 3 17:09:19 1996 Richard Basch + + * 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 * loginpaths.h: Leading/trailing colons should not be there based diff --git a/src/appl/bsd/krlogind.c b/src/appl/bsd/krlogind.c index da5abcf9c..5de2f5faa 100644 --- a/src/appl/bsd/krlogind.c +++ b/src/appl/bsd/krlogind.c @@ -1691,7 +1691,7 @@ int len; */ 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; }