Re: Terminating processes on Windows (handles and IDs)

2008-06-25 Thread geoffbache
Thanks for the help Tim! Good to see this is being sorted in Python at last, although it'll be some time before I can use only Python 2.6 I suspect... I'm making use of _handle now and it works - most of the time. The remaining issues are probably PyGTK problems rather than python ones though, a

Re: Terminating processes on Windows (handles and IDs)

2008-06-24 Thread Tim Golden
Val-Amart wrote: On Jun 23, 6:33 pm, geoffbache <[EMAIL PROTECTED]> wrote: Hi all, I've always wondered why os.kill isn't supported on Windows. I found a discussion somewhere from 2006 about this so it seems others have wanted it, but still nothing. So I have a half-baked solution involving cal

Re: Terminating processes on Windows (handles and IDs)

2008-06-24 Thread geoffbache
Thanks for the tip. This does seem rather overkill to introduce all these dependencies just to be able to kill a process though... I've discovered that subprocess.Popen objects have a member "_handle" which is undocumented but appears to work, so I'm using that for now. Better suggestions gratefu

Re: Terminating processes on Windows (handles and IDs)

2008-06-23 Thread Val-Amart
On Jun 23, 6:33 pm, geoffbache <[EMAIL PROTECTED]> wrote: > Hi all, > > I've always wondered why os.kill isn't supported on Windows. I found a > discussion somewhere from 2006 about this so it seems others have > wanted it, but still nothing. So I have a half-baked solution > involving calling "tas

Terminating processes on Windows (handles and IDs)

2008-06-23 Thread geoffbache
Hi all, I've always wondered why os.kill isn't supported on Windows. I found a discussion somewhere from 2006 about this so it seems others have wanted it, but still nothing. So I have a half-baked solution involving calling "taskkill" on Windows Vista or "tskill" on Windows XP via the shell. I fe