return;
}
+ m_pidLast = pid;
+
static const wxString signalNames[] =
{
wxT("Just test (SIGNONE)"),
wxT("Terminate (SIGTERM)"),
};
+ static int s_sigLast = wxSIGNONE;
int sig = wxGetSingleChoiceIndex(wxT("How to kill the process?"),
wxT("Exec question"),
WXSIZEOF(signalNames), signalNames,
+ s_sigLast,
this);
switch ( sig )
{
break;
}
- if ( sig == 0 )
+ s_sigLast = sig;
+
+ if ( sig == wxSIGNONE )
{
+ // This simply calls Kill(wxSIGNONE) but using it is more convenient.
if ( wxProcess::Exists(pid) )
{
wxLogStatus(wxT("Process %ld is running."), pid);
{
DoGet();
- delete m_process;
- m_process = NULL;
+ wxDELETE(m_process);
wxLogWarning(wxT("The other process has terminated, closing"));