From 0b65b09f15783b067343f7a2dcf67ae1f1e27dc7 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 11:02:20 +0200 Subject: proc: move out process specific management functions Move them out of xutils, so that we can maintain them separately. Also simplify things a bit. Signed-off-by: Daniel Borkmann --- netsniff-ng.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'netsniff-ng.c') diff --git a/netsniff-ng.c b/netsniff-ng.c index f20ebe0..234d781 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -31,6 +31,7 @@ #include "built_in.h" #include "pcap_io.h" #include "privs.h" +#include "proc.h" #include "bpf.h" #include "ioops.h" #include "die.h" @@ -1354,8 +1355,8 @@ int main(int argc, char **argv) tprintf_init(); if (prio_high) { - set_proc_prio(get_default_proc_prio()); - set_sched_status(get_default_sched_policy(), get_default_sched_prio()); + set_proc_prio(-20); + set_sched_status(SCHED_FIFO, sched_get_priority_max(SCHED_FIFO)); } if (ctx.device_in && (device_mtu(ctx.device_in) || -- cgit v1.2.3-54-g00ecf