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
* 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 <hartmans@tertius.mit.edu>
for (;;) {
if ((remaining = rcvcnt - (bufp - rcvbuf)) > 0)
{
- FD_SET(1,&writeset1);
+ FD_SET(1,&writeset);
rcvstate = WRITING;
FD_CLR(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)) {