X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9e003065d7d355f1c5130c8584529bf0dbca635..ababa106ae015f05e14cd2487100954ef50ca694:/src/unix/utilsunx.cpp diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 927b409122..6115ef3330 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -200,9 +200,9 @@ void wxMilliSleep(unsigned long milliseconds) // process management // ---------------------------------------------------------------------------- -int wxKill(long pid, wxSignal sig, wxKillError *rc) +int wxKill(long pid, wxSignal sig, wxKillError *rc, int flags) { - int err = kill((pid_t)pid, (int)sig); + int err = kill((pid_t) (flags & wxKILL_CHILDREN) ? -pid : pid, (int)sig); if ( !err ) *rc = wxKILL_OK; else