Compare commits

..

1 commit

Author SHA1 Message Date
wllm-rbnt
420cfab2a7
Merge 594de65d62 into 7d56234008 2024-04-22 13:47:41 +08:00

View file

@ -54,11 +54,7 @@ static int init_pcap_logger(void *data) {
} }
static int deinit_pcap_logger(void) { static int deinit_pcap_logger(void) {
#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0)
fdatasync(pcap_fd); fdatasync(pcap_fd);
#else
fsync(pcap_fd);
#endif
close(pcap_fd); close(pcap_fd);
return 0; return 0;
} }