On Saturday, 9 May 2015 at 18:19:16 UTC, Baz wrote:
You need a loop that run until the PID is invalid.
You could also call WaitForSingleObject on the process handle https://msdn.microsoft.com/en-us/library/windows/desktop/ms687032%28v=vs.85%29.aspx The HANDLE it expects can be gotten from std.process with this http://dlang.org/phobos/std_process.html#osHandleBut then you'll block for it to end so it probably isn't what you really want...