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: Fri, 19 May 2000 17:38:03 -0500 (CDT)
guy         2000/05/19 17:38:00 CDT

  Modified files:
    .                    capture.c 
  Log:
  Move the closes of the save file FD around:
  
  	"capture()" should ensure that it's closed before returning, but
  	it was only getting closed by "wtap_dump_close()" on success, so
  	close the raw FD on failure (no "wtap_dump" stream is opened on
  	failure, so we just close the raw FD);
  
  	in a "update the display as packets arrive" capture, we should
  	close the FD in the parent as soon as the fork is done, before
  	even testing whether the fork succeeded (and we might as well do
  	the same with the write side of the sync pipe).
  
  Revision  Changes    Path
  1.104     +18 -10    ethereal/capture.c