diff options
author | guy <guy> | 2003-11-04 07:29:15 +0000 |
---|---|---|
committer | guy <guy> | 2003-11-04 07:29:15 +0000 |
commit | 8f34a01034446e63b7ceec8267f6a1e04b167cbf (patch) | |
tree | 9f7b6b1514adb3b4a3589a2a986a1b75ac9fcb62 /nameser.h | |
parent | 2b8d32af12272e39302b92218c2e9dbbda8871cd (diff) | |
download | tcpdump-8f34a01034446e63b7ceec8267f6a1e04b167cbf.tar.gz |
Check whether we have "pcap_breakloop()", and use it if we do - it's a
safer way to terminate "pcap_loop()" in a signal handler (it just sets a
flag, it doesn't muck with data structures that might have been in the
middle of being updated).
Have "setsignal()" not request SA_RESTART, so that if we call
"pcap_breakloop()" in a signal handler and then return, we don't restart
a call that was waiting for captured packets, we just make that call
EINTR out.
Diffstat (limited to 'nameser.h')
0 files changed, 0 insertions, 0 deletions