Ethereal-dev: Re: [ethereal-dev] Problems / suggestions

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: Thu, 30 Sep 1999 00:37:31 -0700
>   - To utilize the -w i tried the new command line capture feature:
> 
> root@funk:/opt/src/net/ethereal-0.7.5#> ./ethereal -w /data/eth/foo -i 
> eth0 -k
> 
>   got me a warning window saying
> 
>   "The file to which the capture would be saved ("/data/eth/foo") could
> not be opened: Bad file descriptor."

I checked a fix into the CVS tree.  In the process, I cleaned up some
other stuff, so you can, for example, do

	ethereal -S -w /data/eth/foo -i eth0 -k

i.e., start a sync mode capture from the command line, and fixed it so
that when the pipe from the child to the parent in sync mode is closed,
the parent does a "wait()" to pick up the child status, and, if the
child exited with a signal, or stopped due to a signal, it reports that
in a message box.