-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
The getCmdLineAndEnvVars function seems to be incompatible with 32bit windows os.
We currently have a jenkins server that runs on a x64 windows machine.
This machine starts a java process on a jenkins slave that is running on a 32bit windows machine.
The process on the 32bit machine cannot be killed. The getCmdLineAndEnvVars checks if the process is wow64, which it is not according to the msdn documentation:
A pointer to a value that is set to TRUE if the process is running under WOW64. If the process is running under 32-bit Windows, the value is set to FALSE. If the process is a 64-bit application running under 64-bit Windows, the value is also set to FALSE.
This means the iswow64 check will always fail, causing an error. This also means the process will never get cleaned.
The check should also look for PROCESSOR_ARCHITECTURE_INTEL and not just wow64