]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied kill patch (proper return value testing).
authorRobert Roebling <robert@roebling.de>
Wed, 24 Nov 2004 14:38:49 +0000 (14:38 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 24 Nov 2004 14:38:49 +0000 (14:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/utilsunx.cpp

index 4386411aa4bbdce254b18782f80725e11dc3d638..927b409122f63360b5958ea4c586084fcfe65ff1 100644 (file)
@@ -203,6 +203,9 @@ void wxMilliSleep(unsigned long milliseconds)
 int wxKill(long pid, wxSignal sig, wxKillError *rc)
 {
     int err = kill((pid_t)pid, (int)sig);
+    if ( !err )
+       *rc = wxKILL_OK;
+    else
     if ( rc )
     {
         switch ( errno )