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

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 02:57:20 -0500 (CDT)
guy         1999/09/23 02:57:18 CDT

  Modified files:
    .                    capture.c 
  Log:
  Close the capture file in "do_capture()", right before unlinking the
  current capture file if it's a temporary file, out of paranoia (so that
  we don't get into a state where we have a capture file open but unlinked
  - it's probably harmless to be in that state, as the file will remain
  around until close, modulo NFS fun, and we may never be in that state
  for very long, but I'd rather have it obviously stated in the code).
  
  Remove the close in "capture()", and put one before the other call to
  "capture()", in "main_realize_cb()" (is that call necessary, e.g. if you
  pass "-r <filename>" *and* "-k", for some perverse reason, as
  command-line arguments?).
  
  If "cf.save_file" is non-null, free it before setting it, regardless of
  whether it refers to a temporary file name or not.
  
  Revision  Changes    Path
  1.71      +8 -14     ethereal/capture.c