diff options
author | Xin LI <delphij@FreeBSD.org> | 2013-05-30 06:41:26 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2013-05-30 06:41:26 +0000 |
commit | 59ed76438047aa730b3a617abd873b84457fc4fd (patch) | |
tree | dcf9aa60c012e16ad8a4bb83641d382d572050f8 /pcap_breakloop.3pcap | |
parent | 3ca61f8b14e648b24f10072d662c12fb35fc4b44 (diff) | |
download | src-59ed76438047aa730b3a617abd873b84457fc4fd.tar.gz src-59ed76438047aa730b3a617abd873b84457fc4fd.zip |
Vendor import of libpcap 1.4.0.vendor/libpcap/1.4.0
Notes
Notes:
svn path=/vendor/libpcap/dist/; revision=251125
svn path=/vendor/libpcap/1.4.0/; revision=251126; tag=vendor/libpcap/1.4.0
Diffstat (limited to 'pcap_breakloop.3pcap')
-rw-r--r-- | pcap_breakloop.3pcap | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/pcap_breakloop.3pcap b/pcap_breakloop.3pcap index 2372348be49e..e437af8a8e68 100644 --- a/pcap_breakloop.3pcap +++ b/pcap_breakloop.3pcap @@ -58,20 +58,15 @@ if the signal interrupted a call reading packets in a live capture, when your signal handler returns after calling pcap_breakloop(), the call will be restarted, and the loop will not terminate until more packets arrive and the call completes. +.ft R .PP +.ft B Note also that, in a multi-threaded application, if one thread is -blocked in -.BR pcap_dispatch() , -.BR pcap_loop() , -.BR pcap_next() , -or -.BR pcap_next_ex() , -a call to -.B pcap_breakloop() -in a different thread will not unblock that thread; you will need to use -whatever mechanism the OS provides for breaking a thread out of blocking -calls in order to unblock the thread, such as thread cancellation in -systems that support POSIX threads. +blocked in pcap_dispatch(), pcap_loop(), pcap_next(), or pcap_next_ex(), +a call to pcap_breakloop() in a different thread will not unblock that +thread; you will need to use whatever mechanism the OS provides for +breaking a thread out of blocking calls in order to unblock the thread, +such as thread cancellation in systems that support POSIX threads. .ft R .PP Note that |