Ethereal-dev: Re: [Ethereal-dev] Interface "features"

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 8 Jan 2002 01:35:14 -0800
On Sun, Dec 30, 2001 at 07:14:26PM +0000, Graeme Hewson wrote:
> A couple of interface "features" here.
> 
> Start packet capture with -S option.  Can close main window with GUI X
> button, leaving capture window displayed.  Close capture window, get
> bunch of GTK warning and critical messages.
> 
> Start packet capture with -S option.  Enter two File/Quits or ^q's and
> ethereal exits, leaving the capture window displayed.
> 
> Using Mandrake Linux 7.0, kernel 2.2.19-5.2mdk, ethereal 0.9.0, with
> GTK+ 1.2.10, with GLib 1.2.10, with libpcap 0.6, with libz 1.1.3,
> without SNMP.

It's not platform-specific - and it's not even "-S"-specific; it happens
in any "Update list of packets in real time" capture.

There were two bugs:

	1) if you did a File/Quit, a ^Q, or a "close main window", and
	   an "Update list of packets in real time" capture was in
	   progress, the child process (which is the process to which
	   the capture window belongs) wasn't killed;

	2) if you did a "close main window", it immediately deleted the
	   main window, so that various cleanup actions had problems due
	   to the lack of a main window.

I checked in a fix to 1) (kill the child process) and 2) (don't delete
the main window - it'll get deleted by the cleanup code and the exit).