terminate-process: improve error message

This commit is contained in:
Marius Gerbershagen 2023-02-25 21:39:33 +01:00
parent 828b2b482a
commit 115b52f9f5

View file

@ -71,7 +71,7 @@
(process pid) (:object :object) :void
"HANDLE *ph = (HANDLE*)ecl_foreign_data_pointer_safe(#1);
int ret = TerminateProcess(*ph, -1);
if (ret == 0) FEerror(\"Cannot terminate the process ~A\", 1, #0);")
if (ret == 0) FEwin32_error(\"Cannot terminate the process ~A\", 1, #0);")
#-windows
(unless (zerop (si:killpid pid (if force +sigkill+ +sigterm+)))
(error "Cannot terminate the process ~A" process))))))