aboutsummaryrefslogtreecommitdiff
path: root/jim-eventloop.c
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 /jim-eventloop.c
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.
Diffstat (limited to 'jim-eventloop.c')
-rw-r--r--jim-eventloop.c6
1 files changed, 3 insertions, 3 deletions
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;