1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
--- l2tpns-2.1.21.orig/l2tpns.c 2006-06-22 17:30:50.000000000 +0200
+++ l2tpns-2.1.21/l2tpns.c 2013-07-16 17:39:13.000000000 +0200
@@ -10,6 +10,7 @@ char const *cvs_id_l2tpns = "$Id: l2tpns
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
+#include <stdio.h>
#include <linux/if_tun.h>
#define SYSLOG_NAMES
#include <syslog.h>
@@ -22,7 +23,6 @@ char const *cvs_id_l2tpns = "$Id: l2tpns
#include <netinet/ip6.h>
#include <stdarg.h>
#include <stdlib.h>
-#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <sys/ioctl.h>
@@ -4233,31 +4233,6 @@ int main(int argc, char *argv[])
chdir("/tmp");
}
- if (config->scheduler_fifo)
- {
- int ret;
- struct sched_param params = {0};
- params.sched_priority = 1;
-
- if (get_nprocs() < 2)
- {
- LOG(0, 0, 0, "Not using FIFO scheduler, there is only 1 processor in the system.\n");
- config->scheduler_fifo = 0;
- }
- else
- {
- if ((ret = sched_setscheduler(0, SCHED_FIFO, ¶ms)) == 0)
- {
- LOG(1, 0, 0, "Using FIFO scheduler. Say goodbye to any other processes running\n");
- }
- else
- {
- LOG(0, 0, 0, "Error setting scheduler to FIFO: %s\n", strerror(errno));
- config->scheduler_fifo = 0;
- }
- }
- }
-
/* Set up the cluster communications port. */
if (cluster_init() < 0)
exit(1);
|