Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal tethereal.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jun 2002 04:47:37 -0500 (CDT)
guy         2002/06/28 04:47:37 CDT

  Modified files:
    .                    tethereal.c 
  Log:
  SIGINT is, at least as I read some Microsoft documentation, not
  supported in Win32 applications; use the native Win32 mechanism for
  catching ^C (and other events that would terminate a program running in
  a console window).
  
  That mechanism (and the signal mechanism in the MSVC++ C run-time) cause
  the handler to be run in a separate thread, so it can't just do a
  longjmp.  Fortunately, WinPcap's packet-dispatch loop, unlike the
  libpcap loop on some UNIX platforms, can be interrupted by ^C, so we
  don't have to do the longjmp there - we can just set "ld.go" to FALSE to
  terminate the capture loop.
  
  Revision  Changes    Path
  1.145     +44 -6     ethereal/tethereal.c