Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Win32 spawner does not return the actual process id (pid) of the process.

Hi All,

In the win32 implementation for Spawner, the "pid" field in Spawner does not contain the actual process id of the running process. It contains the value of a counter which indicates that this is the Nth process launched by the Spawner in this CDT session.

In the linux implementation for Spawner, the "pid" field in Spawner contains the actual process id of the forked child process.

Can we add a function "getRawProcessID" to Win32ProcessEx.c which takes as input the counter value and returns the raw pid which it is mapped to.
The Spawner can have a getPID method which returns the value of the "pid" field if the platform is linux, and calls the native function "getRawProcessID" if the platform is win32.

Thanks,

Abeer Bagul
Software Engineer - Tensilica India

Back to the top