* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA
*
- * $Id: win32.c 26092 2008-09-19 15:13:52Z androsyn $
*/
#include <libratbox_config.h>
rb_kill(int pid, int sig)
{
HANDLE hProcess;
- hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, pid);
int ret = -1;
+ hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, pid);
+
if(hProcess)
{
switch (sig)