Does user level Click still work?

Benjie Chen benjie at cag.lcs.mit.edu
Thu Mar 9 11:38:41 EST 2000


Hi

It definitely is a bug. The following patch fixes it (apply in click toplevel
dir using patch -p0). Thanks for the bug report.

----------------------------------------------------------------

RCS file: /home/butt/click/cvsroot/release/one/lib/router.cc,v
retrieving revision 1.28
diff -c -r1.28 router.cc
*** lib/router.cc       2000/02/16 18:52:11     1.28
--- lib/router.cc       2000/03/09 16:27:35
***************
*** 895,908 ****
  {
    unsigned c = 10000;
    ElementLink *fl;
!   while (fl = scheduled_next(), fl != this && !_please_stop_driver) {
!     fl->unschedule();
!     ((Element *)fl)->run_scheduled();
!     if (c-- == 0) {
!       c = 10000;
!       wait();
      }
    }
  }
  
  void
--- 895,915 ----
  {
    unsigned c = 10000;
    ElementLink *fl;
! #ifndef __KERNEL__
!   while (!_please_stop_driver) {
! #endif
!     while (fl = scheduled_next(), fl != this && !_please_stop_driver) {
!       fl->unschedule();
!       ((Element *)fl)->run_scheduled();
!       if (c-- == 0) {
!         c = 10000;
!         wait();
!       }
      }
+ #ifndef __KERNEL__
+     wait();
    }
+ #endif
  }
  
  void



More information about the click mailing list