Ethereal-dev: Re: [ethereal-dev] Real-time capture for Win32 (updated)

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

From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Tue, 27 Jun 2000 00:19:01 -0700
On Wed, Jun 14, 2000 at 10:41:58PM -0700, Guy Harris wrote:
> On Wed, Jun 14, 2000 at 10:34:48AM +0100, Graham Bloice wrote:
> > Attached should be an updated patch to add real-time capture for Win32
> > versions.  Capture filters now work, but if the main program is terminated
> > while a capture is in progress, the capture process is left running.
> > Clicking the stop button will terminate it though.
> 
> Not Win32-specific - the same happens on Unix/X.

Well, not any more it doesn't, with the code currently in CVS; see my
recent reply to Ben Fowler's mail - the changes necessary to make
Ethereal not blow up if you do "File->Quit" while it's reading in a
capture file also let us arrange that it kill the child capture process
if you do "File->Quit" while it's doing a real-time capture.

I leave doing it on Win32 as an exercise for the reader, for now; see
the code at the end of "cap_file_input_cb()" in "capture.c".