diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 11:02:20 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 11:02:20 +0200 |
commit | 0b65b09f15783b067343f7a2dcf67ae1f1e27dc7 (patch) | |
tree | 6aae73353ac5c8fc45c9d8c6095dc27fd15053d3 /netsniff-ng.c | |
parent | 4722d3bac43062a9213a08ed2435b8ef9b426789 (diff) |
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 <dborkman@redhat.com>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r-- | netsniff-ng.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) || |