Kill fix for 3.2.x branch

Quick and dirty fix to cross-check PIDs with process name. WARNING does not compile under windows, needs testing under Solaris, AIX.