diff options
Diffstat (limited to 'pcap_sg.c')
-rw-r--r-- | pcap_sg.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |