Killing processes on Windows (again)

Thanks. SIGKILL does the trick. Of course, SIGKILL is not catchable :-).
If I create a SIGTERM handler in the child, it is never entered. It looks
almost as though SIGKILL is the *only* signal that is really sent.

But this is close enough for what I want now. When I have a chance I'll do
more experimenting with all the win32process stuff.

I think "underimplemented" is a good description here.

···

--------------------------------------
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456

                    "Robin Dunn"
                    <robin@alldunn.com>
                                                                                                      
                                                   To: wxPython-users@lists.wxwindows.org
                    12-Jun-2003 20:58
                    Please respond to cc:
                    wxPython-users@lists.wxw Subject: Re: [wxPython-users] Killing
                    indows.org processes on Windows (again)
                                                                                                      
gary.h.merrill@gsk.com wrote:

I'm going to need a little more help on this.

I start up my process with

      process = wxProcess(window)
            self.pid = wxExecute(self.cmd, wxEXEC_ASYNC, process)

later (as the result of a 'Stop' button press), I do

            wxProcess_Kill(self.pid, wxSIGTERM)

But so far as I can see this has no effect on the process.

Does wxSIGKILL do anything?

Moreover, it
seems to me that I should be able to write a signal handler for that
process and have the handler catch the signal that wxProcess_Kill()

sends.

But I don't have a clue how to do this since the signal handling in os
seems incompatible with that in wxWindows.

A signal is identified as just an int, so there shouldn't be anything to
be compatible with. That said, posix signal support in the MS C runtime
library (which is what os is built on,) is notoriously weak and, um...
underimplemented...

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org