aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez>2005-09-19 15:56:39 +0000
committerantirez <antirez>2005-09-19 15:56:39 +0000
commite905d79b0e426fc17b2578c63760ba5e6c654736 (patch)
treec4687e98b82b1d9785e10cac2acd85a291b84ea0
parent954d2c626d6652a9858f761f126927e5a3cda082 (diff)
downloadjimtcl-e905d79b0e426fc17b2578c63760ba5e6c654736.zip
jimtcl-e905d79b0e426fc17b2578c63760ba5e6c654736.tar.gz
jimtcl-e905d79b0e426fc17b2578c63760ba5e6c654736.tar.bz2
Fixed a bug reported by Craig Denson about jim-eveloop.c and filemasks.
-rw-r--r--ChangeLog10
-rw-r--r--jim-eventloop.c6
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b2daed1..e5fef74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-09-19 17:47 antirez
+
+ * BUGS, ChangeLog, jim.c: Updated BUGS, fixed some minor problem
+ with GCC 4.x compilation.
+
+2005-09-19 16:17 antirez
+
+ * doc/Sqlite-Extension.txt: Added info about in-memory databases in
+ the Sqlite extension doc.
+
2005-04-26 15:31 patthoyts
* jim-win32.c: Check available windows target version for more
diff --git a/jim-eventloop.c b/jim-eventloop.c
index 0a409aa..6822175 100644
--- a/jim-eventloop.c
+++ b/jim-eventloop.c
@@ -1,7 +1,7 @@
/* Jim - Event Loop extension
* Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
*
- * $Id: jim-eventloop.c,v 1.1 2005/04/18 08:31:26 antirez Exp $
+ * $Id: jim-eventloop.c,v 1.2 2005/09/19 15:56:39 antirez Exp $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -222,8 +222,8 @@ int Jim_ProcessEvents(Jim_Interp *interp, int flags)
int fd = (int) fe->handle;
if (fe->mask & JIM_EVENT_READABLE) FD_SET(fd, &rfds);
- if (fe->mask & JIM_EVENT_WRITABLE) FD_SET(fd, &rfds);
- if (fe->mask & JIM_EVENT_EXCEPTION) FD_SET(fd, &rfds);
+ if (fe->mask & JIM_EVENT_WRITABLE) FD_SET(fd, &wfds);
+ if (fe->mask & JIM_EVENT_EXCEPTION) FD_SET(fd, &efds);
if (maxfd < fd) maxfd = fd;
numfd++;
fe = fe->next;