Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal capture.c capture.h globals.h

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 23 Sep 1999 01:27:24 -0500 (CDT)
guy         1999/09/23 01:27:22 CDT

  Modified files:
    .                    capture.c capture.h globals.h 
  Log:
  Move the toolkit-independent code to create a temporary capture file,
  and to fork off and run a separate copy of "ethereal" for "-S" and "-F"
  captures or just call "capture()" otherwise, out of "gtk/capture_dlg.c"
  and into a routine in "capture.c".
  
  If the attempt to create said temporary capture file fails, pop up a
  dialog box and don't do the capture.
  
  Have the child capture process send a message upstream after it either
  successfully starts the capture and syncs out the header of the capture
  file, or fails to start the capture; the message indicates whether it
  succeeded or failed, and, if it failed, includes a failure message.
  This:
  
  	avoids the use of a signal, and thus means we don't have to
  	worry about whether to capture the signal, or whether to start
  	or stop capturing depending on whether this particular capture
  	is in sync mode or not;
  
  	lets us pop up the message box for the error in the parent
  	process if we're in sync mode, rather than doing it in the
  	child, which didn't work well.
  
  Add a check button to the Capture/Start dialog box, so that we can
  control, for each capture, whether it's to be done in sync mode or not.
  
  Revision  Changes    Path
  1.68      +371 -223  ethereal/capture.c
  1.15      +2 -1      ethereal/capture.h
  1.6       +1 -2      ethereal/globals.h