[Ecls-list] Port waitpid to windows?
Juan Jose Garcia-Ripoll
jjgarcia at users.sourceforge.net
Mon Nov 26 11:07:18 UTC 2007
On Nov 26, 2007 10:21 AM, Goffioul Michael <goffioul at imec.be> wrote:
> What you have to do is (I cannot check myself as I'm not using
> ECL currently)
> - not close the process handle pr_info.hProcess (this probably
> means adding a top-level variable to store it, let's call it
> childHandle)
> - use something like:
>
> int status; /* just in case you'd need the exit status */
> WaitForSingleObject(childHandle, INFINITE);
> /* skip the following if you don't care about the exist status */
> GetExitCodeProcess(childHandle, (LPDWORD)&status);
> CloseHandle(childHandle);
Thanks, I will incorporate the code ASAP.
Juanjo
--
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com
More information about the ecl-devel
mailing list