external process: we are using handle, not a pointer

This commit is contained in:
Daniel Kochmański 2016-12-08 15:56:55 +01:00
parent ea001f5b63
commit fb0359eda1

View file

@ -313,7 +313,7 @@ ecl_waitpid(cl_object pid, cl_object wait)
int ret;
#if defined(ECL_MS_WINDOWS_HOST)
HANDLE *ph = (HANDLE*)ecl_foreign_data_pointer_safe(pid);
ret = TerminateProcess(ph, -1);
ret = TerminateProcess(*ph, -1);
error_encountered = (ret == 0);
#else
ret = kill(ecl_fixnum(pid), Null(force) ? SIGTERM : SIGKILL);