mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 17:37:04 +00:00
Compare commits
3 commits
420cfab2a7
...
cf9ceb1d07
Author | SHA1 | Date | |
---|---|---|---|
|
cf9ceb1d07 | ||
d02412720b | |||
|
e5f2916b65 |
1 changed files with 5 additions and 1 deletions
|
@ -54,7 +54,11 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue