projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
57d6297
)
src/ioset-select.c (ioset_select_remove): Null out fds[] entry on remove.
author
Michael Poole
<mdpoole@troilus.org>
Sun, 23 Mar 2008 15:51:21 +0000
(11:51 -0400)
committer
Michael Poole
<mdpoole@troilus.org>
Sun, 23 Mar 2008 15:51:21 +0000
(11:51 -0400)
src/ioset-select.c
patch
|
blob
|
history
diff --git
a/src/ioset-select.c
b/src/ioset-select.c
index fce797b4665feca0f46605bfd4dcc995f6574051..55b8ac7abb74c8dbed25b4a65de359028451dff1 100644
(file)
--- a/
src/ioset-select.c
+++ b/
src/ioset-select.c
@@
-64,6
+64,7
@@
ioset_select_remove(struct io_fd *fd, int closed)
FD_CLR(fd->fd, &read_fds);
FD_CLR(fd->fd, &write_fds);
FD_CLR(fd->fd, &except_fds);
FD_CLR(fd->fd, &read_fds);
FD_CLR(fd->fd, &write_fds);
FD_CLR(fd->fd, &except_fds);
+ fds[fd->fd] = NULL;
(void)closed;
}
(void)closed;
}