From f3882a3cc54dc5700951d0dda9d327a6cdd8e2df Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sat, 27 Jan 1996 02:58:54 +0000 Subject: [PATCH] Oops; I accidentally comitted a version of krlogin that didn't even compile. (I tested the binary in the wrong build tree.) Compiled and tested this time. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7397 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 1 + src/appl/bsd/krlogin.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c7f26b9dc..34bbad3da 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -3,6 +3,7 @@ Fri Jan 26 00:37:23 1996 Sam Hartman * krlogin.c (endif ): (reader): Deal with exceptions even while writing. +(reader): Fix bogus select bug; actually select on writing Wed Jan 24 00:34:42 1996 Sam Hartman diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 34906fe8f..1450a5095 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -1336,7 +1336,7 @@ FD_ZERO(&readset); for (;;) { if ((remaining = rcvcnt - (bufp - rcvbuf)) > 0) { - FD_SET(1,&writeset1); + FD_SET(1,&writeset); rcvstate = WRITING; FD_CLR(rem, &readset); } @@ -1349,7 +1349,7 @@ FD_SET(rem,&readset); FD_CLR(1,&writeset); } FD_SET(rem,&excset); - if (select(rem+1, &readset, 0, &excset, 0) > 0 ) { + if (select(rem+1, &readset, &writeset, &excset, 0) > 0 ) { if (FD_ISSET(rem, &excset)) oob(); if (FD_ISSET(1,&writeset)) { -- 2.26.2