Whamcloud - gitweb
[tcpnal}:
authorericm <ericm>
Wed, 20 Aug 2003 08:22:54 +0000 (08:22 +0000)
committerericm <ericm>
Wed, 20 Aug 2003 08:22:54 +0000 (08:22 +0000)
  temporarily work around for nal thread endless waiting problem.

lnet/ulnds/select.c
lnet/ulnds/socklnd/select.c
lustre/portals/unals/select.c

index bcfba02..1dd547a 100644 (file)
@@ -126,6 +126,15 @@ void select_timer_block(when until)
         timeout_pointer=&timeout;
     } else timeout_pointer=0;
 
+
+    /* FIXME
+     * temporarily add timer for endless waiting problem.
+     * FIXME
+     */
+    timeout.tv_sec = 1;
+    timeout.tv_usec = 0;
+    timeout_pointer=&timeout;
+
     FD_ZERO(&fds[0]);
     FD_ZERO(&fds[1]);
     FD_ZERO(&fds[2]);
index bcfba02..1dd547a 100644 (file)
@@ -126,6 +126,15 @@ void select_timer_block(when until)
         timeout_pointer=&timeout;
     } else timeout_pointer=0;
 
+
+    /* FIXME
+     * temporarily add timer for endless waiting problem.
+     * FIXME
+     */
+    timeout.tv_sec = 1;
+    timeout.tv_usec = 0;
+    timeout_pointer=&timeout;
+
     FD_ZERO(&fds[0]);
     FD_ZERO(&fds[1]);
     FD_ZERO(&fds[2]);
index bcfba02..1dd547a 100644 (file)
@@ -126,6 +126,15 @@ void select_timer_block(when until)
         timeout_pointer=&timeout;
     } else timeout_pointer=0;
 
+
+    /* FIXME
+     * temporarily add timer for endless waiting problem.
+     * FIXME
+     */
+    timeout.tv_sec = 1;
+    timeout.tv_usec = 0;
+    timeout_pointer=&timeout;
+
     FD_ZERO(&fds[0]);
     FD_ZERO(&fds[1]);
     FD_ZERO(&fds[2]);