patch-l2tpns_c 940 B

1234567891011121314151617181920212223242526272829303132333435
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- l2tpns-2.1.21.orig/l2tpns.c 2006-06-22 17:30:50.000000000 +0200
  3. +++ l2tpns-2.1.21/l2tpns.c 2009-05-29 17:53:32.393095004 +0200
  4. @@ -4233,31 +4233,6 @@ int main(int argc, char *argv[])
  5. chdir("/tmp");
  6. }
  7. - if (config->scheduler_fifo)
  8. - {
  9. - int ret;
  10. - struct sched_param params = {0};
  11. - params.sched_priority = 1;
  12. -
  13. - if (get_nprocs() < 2)
  14. - {
  15. - LOG(0, 0, 0, "Not using FIFO scheduler, there is only 1 processor in the system.\n");
  16. - config->scheduler_fifo = 0;
  17. - }
  18. - else
  19. - {
  20. - if ((ret = sched_setscheduler(0, SCHED_FIFO, &params)) == 0)
  21. - {
  22. - LOG(1, 0, 0, "Using FIFO scheduler. Say goodbye to any other processes running\n");
  23. - }
  24. - else
  25. - {
  26. - LOG(0, 0, 0, "Error setting scheduler to FIFO: %s\n", strerror(errno));
  27. - config->scheduler_fifo = 0;
  28. - }
  29. - }
  30. - }
  31. -
  32. /* Set up the cluster communications port. */
  33. if (cluster_init() < 0)
  34. exit(1);