| From: Guy Harris
|
| On Nov 14, 2003, at 4:31 AM, Biot Olivier wrote:
|
| > When capturing with tethereal, my CPU gets utilized at
| 60-100% while
| > nothing
| > happens (even ^C does not help for quitting the application).
|
| Other than a GNU ADNS problem, or a problem with something controlled
| by _WIN32 where Cygwin's "pretend-it's-UNIX" environment doesn't make
| it enough like UNIX, I don't know what that might be.
|
| > With ethereal
| > I get a popup with the following message:
| > "Unexpected error from select: Bad file descriptor"
|
| _WIN32 isn't being defined (otherwise, there would be no "select()"
| calls).
|
| The attached patch (which I've checked in) forces it to treat
| Cygwin as
| if it were Windows, not UNIX, when deciding whether to use
| "select()"
| in the main input loop or not.
And it effectively works! The following issue is that I am unable to read
the capture as [t]ethereal complain(s) about an invalid file format. The 1st
time I capture Ethereal complains about the capture file format, and I can
only see one packet invariably dissected as LLC. A second capture (with the
same Ethereal instance) succeeds and dissection too.
Regards,
Olivier