fixed crash in wxKill() introduced by 1.116 patch (ironically named "proper

return value testing"); this is slightly modified patch 1098248


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-19 02:51:13 +00:00
parent 51e4e26670
commit f0bce4d4e0

View File

@@ -203,12 +203,9 @@ void wxMilliSleep(unsigned long milliseconds)
int wxKill(long pid, wxSignal sig, wxKillError *rc, int flags)
{
int err = kill((pid_t) (flags & wxKILL_CHILDREN) ? -pid : pid, (int)sig);
if ( !err )
*rc = wxKILL_OK;
else
if ( rc )
{
switch ( errno )
switch ( err ? errno : 0 )
{
case 0:
*rc = wxKILL_OK;