https://bugs.winehq.org/show_bug.cgi?id=48664
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |fgouget@codeweavers.com
--- Comment #1 from François Gouget fgouget@codeweavers.com --- Pids cannot be used to identify processes on Windows. https://testbot.winehq.org/JobDetails.pl?Key=65720
Here's what happens: * Process.exe with pid 1234 starts Child.exe. * Process.exe exits which means its pid can now be reused because despite Child.exe having 1234 as its ppid, it does not hold a handle to Process.exe.
* Test.exe comes around and starts Nested.exe which gets pid 1234. * Nested.exe starts Dump.exe and exits. ' Test.exe then numerates all processes on the system and latches onto the first process where ppid == 1234. Whether it gets Child.exe or Dump.exe is entirely up to chance.