Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal AUTHORS capture.c 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: Thu, 3 Jan 2002 16:03:25 -0600 (CST)
guy         2002/01/03 16:03:25 CST

  Modified files:
    .                    AUTHORS capture.c tethereal.c 
  Log:
  Make the "go" member of the "loop_data" structure in Ethereal a
  "gboolean", as it's a Boolean value, and move it to the beginning of the
  structure in Tethereal, as it is in Ethereal.
  
  From Graeme Hewson:
  
  	Check for "pcap_dispatch()" returning -1, meaning an error
  	occurred; if it does, stop capturing, and report the error.
  
  	If we get a signal in tethereal, stop the capture with a
  	"longjmp()", rather than by clearning the "go" flag;
  	"pcap_dispatch()", on many platforms, keeps reading rather than
  	returning a captured packet count of 0 if the system call to
  	read packets returns -1 with an errno of EINTR, so the
  	"pcap_dispatch()" won't be broken out of if the signal handler
  	returns.
  
  	Fix a typo in an error message.
  
  Revision  Changes    Path
  1.402     +2 -0      ethereal/AUTHORS
  1.164     +26 -2     ethereal/capture.c
  1.113     +18 -10    ethereal/tethereal.c