Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-commits: [Wireshark-commits] rev 18201: /trunk/ /trunk/: Makefile.nmake acinclude.m4 capture-wpcap.c capture_loop.c capture_loop.h config.h.win32 config.nmake

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: guy@xxxxxxxxxxxxx
Date: Sun, 21 May 2006 21:32:05 GMT

User: guy
Date: 2006/05/21 09:32 PM

Log:
 If we have pcap_breakloop(), at least on UN*X we can stop the capture
 with a pcap_breakloop() call - we don't need to call select() before
 calling pcap_dispatch().
 
 Even if we do need to call select(), we don't need to supply it with a
 timeout - it's OK if we block indefinitely, as the signal will interrupt
 select().
 
 That also means we can pass -1 as the count to pcap_dispatch(), as
 pcap_breakloop() will terminate the loop in pcap_dispatch().
 
 Use sigaction() to catch SIGUSR1, so we can make sure that the signal
 handler doesn't get reset when the signal is delivered, and that system
 calls don't restart when we return from the signal handler.

Directory: /trunk/
  Changes    Path               Action
  +1 -0      Makefile.nmake     Modified


  • Prev by Date: [Wireshark-commits] rev 18200: /trunk/tools/ /trunk/tools/: win32-setup.sh
  • Next by Date: [Wireshark-commits] rev 18202: /trunk/doc/ /trunk/doc/: README.stats_tree
  • Previous by thread: [Wireshark-commits] rev 18200: /trunk/tools/ /trunk/tools/: win32-setup.sh
  • Next by thread: [Wireshark-commits] rev 18202: /trunk/doc/ /trunk/doc/: README.stats_tree
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation