summaryrefslogtreecommitdiff
path: root/pcap_sg.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap_sg.c')
-rw-r--r--pcap_sg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcap_sg.c b/pcap_sg.c
index 9d07656..80c2c5d 100644
--- a/pcap_sg.c
+++ b/pcap_sg.c
@@ -145,9 +145,10 @@ static void pcap_sg_fsync(int fd)
fdatasync(fd);
}
-static void pcap_sg_init_once(void)
+static void pcap_sg_init_once(bool enforce_prio)
{
- set_ioprio_rt();
+ if (enforce_prio)
+ set_ioprio_rt();
}
static int pcap_sg_prepare_access(int fd, enum pcap_mode mode, bool jumbo)