mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 09:27:04 +00:00
Compare commits
1 commit
cf9ceb1d07
...
420cfab2a7
Author | SHA1 | Date | |
---|---|---|---|
|
420cfab2a7 |
1 changed files with 1 additions and 5 deletions
|
@ -54,11 +54,7 @@ static int init_pcap_logger(void *data) {
|
|||
}
|
||||
|
||||
static int deinit_pcap_logger(void) {
|
||||
#if defined(_POSIX_SYNCHRONIZED_IO) && (_POSIX_SYNCHRONIZED_IO > 0)
|
||||
fdatasync(pcap_fd);
|
||||
#else
|
||||
fsync(pcap_fd);
|
||||
#endif
|
||||
fdatasync(pcap_fd);
|
||||
close(pcap_fd);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue