freenode/#sbcl - IRC Chatlog
Search
11:16:44
hlavaty
hi on windoes, is there a way to get pid for run-program process, which is suitable for taskkill? sb-ext:process-pid gives a number which doesn't seem to be windows pid
11:20:07
jackdaniel
hlavaty: I believe that it is meant to be killed with sb-ext:process-close called on the return value of sb-ext:run-program
11:24:51
hlavaty
actually it looks like sb-ext:process-pid returns handle for which GetProcessID returns the actual pid
11:32:01
jackdaniel
then maybe (defun terminate-win-process (pid) (sb-ext:run-program "taskkill" '(…))) ;? if pid is correct
11:32:46
hlavaty
jackdaniel: yes, but as i said initially, sb-ext:process-pid doesn't return the pid
11:33:24
hlavaty
we'll try sb-ext:process-pid -> handle -> GetProcessId -> pid -> taskkill and see if it works
11:34:01
scymtym
hlavaty: maybe try this via sb-alien: https://msdn.microsoft.com/en-us/library/ms686714(VS.85).aspx
11:35:17
hlavaty
scymtym: yeah that is an option, although it doesnt seem to advertise killing the whole process subtree
11:39:15
scymtym
unless the signal is SIGTERM or SIGINT and the child process takes care of it itself
12:16:08
stassats
the hppa build is broken because it has an ldb instruction, the new instruction format defines functions => conflict