summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-05-31 19:58:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-05-31 19:58:45 (GMT)
commitcd7e1651b17ee97ef7188b3771fb7d8291a9449a (patch)
tree66de8db16f5e91e8891a0c300612975e1eb9d8a2 /unix/tclUnixSock.c
parenta720a9f6e21c4c9afd7a4b125478dc9800db11c2 (diff)
parentba5939ea3bf47fc00db9172391b3d68e24539921 (diff)
downloadtcl-cd7e1651b17ee97ef7188b3771fb7d8291a9449a.zip
tcl-cd7e1651b17ee97ef7188b3771fb7d8291a9449a.tar.gz
tcl-cd7e1651b17ee97ef7188b3771fb7d8291a9449a.tar.bz2
Rewind from a refactoring that veered into the weeds.bug_3293874
Diffstat (limited to 'unix/tclUnixSock.c')
-rw-r--r--unix/tclUnixSock.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 35728e1..cb72759 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -785,25 +785,16 @@ TcpWatchProc(
* TCL_EXCEPTION. */
{
TcpState *statePtr = (TcpState *) instanceData;
+ TcpFdList *fds;
- /*
- * Make sure we don't mess with server sockets since they will never be
- * readable or writable at the Tcl level. This keeps Tcl scripts from
- * interfering with the -accept behavior.
- */
-
- if (!statePtr->acceptProc) {
- TcpFdList *fds;
-
- for (fds = statePtr->fds; fds != NULL; fds = fds->next) {
- if (mask) {
- Tcl_CreateFileHandler(fds->fd, mask,
- (Tcl_FileProc *) Tcl_NotifyChannel,
- (ClientData) statePtr->channel);
- } else {
- Tcl_DeleteFileHandler(fds->fd);
- }
- }
+ for (fds = statePtr->fds; fds != NULL; fds = fds->next) {
+ if (mask) {
+ Tcl_CreateFileHandler(fds->fd, mask,
+ (Tcl_FileProc *) Tcl_NotifyChannel,
+ (ClientData) statePtr->channel);
+ } else {
+ Tcl_DeleteFileHandler(fds->fd);
+ }
}
}