[PATCH 2/4] dumpcap: allow multiple invocations

Stephen Hemminger stephen at networkplumber.org
Tue Nov 7 03:34:59 CET 2023


On Thu, 21 Sep 2023 08:22:12 +0200
Morten Brørup <mb at smartsharesystems.com> wrote:

> I'm not sure getpid() is available on Windows. How about:
> 
> #ifdef _WIN32
> #include <processthreadsapi.h> // With the headers, not here.
> "dumpcap-%lu", GetCurrentProcessId());
> #else
> "dumpcap-%u", getpid());
> #endif


Dumpcap doesn't support windows because there are lots of things about
pdump library that won't work on Windows.


More information about the dev mailing list