diff options
| author | Richard Basch <probe@mit.edu> | 1996-04-03 22:24:03 +0000 |
|---|---|---|
| committer | Richard Basch <probe@mit.edu> | 1996-04-03 22:24:03 +0000 |
| commit | 9eb1e1763959aeda890cab1a4ced67eae15c6f1a (patch) | |
| tree | fffbe2f12d5718cc4269a93c5ec47dd97621f9b6 /src | |
| parent | ab1eeeb9f68a713bc12568d46b974722d83fe9d0 (diff) | |
* 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
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/bsd/ChangeLog | 8 | ||||
| -rw-r--r-- | src/appl/bsd/krlogind.c | 2 |
2 files changed, 9 insertions, 1 deletions
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 <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 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; } |
