Various fixes and improvements, backported from Pro version. Code by Erik Zandvliet.
This commit is contained in:
parent
5cce37c521
commit
b28a619fc6
13 changed files with 383 additions and 550 deletions
|
@ -808,15 +808,17 @@ namespace IPC {
|
|||
break;
|
||||
default:
|
||||
#ifndef NOCRASHCHECK
|
||||
if(*counter > 10 && *counter < 126 ){
|
||||
if(*counter < 30){
|
||||
if (*counter > 15){
|
||||
WARN_MSG("Process %d is unresponsive",tmpPID);
|
||||
if (tmpPID){
|
||||
if(*counter > 10 && *counter < 126 ){
|
||||
if(*counter < 30){
|
||||
if (*counter > 15){
|
||||
WARN_MSG("Process %d is unresponsive",tmpPID);
|
||||
}
|
||||
Util::Procs::Stop(tmpPID); //soft kill
|
||||
} else {
|
||||
ERROR_MSG("Killing unresponsive process %d", tmpPID);
|
||||
Util::Procs::Murder(tmpPID); //improved kill
|
||||
}
|
||||
Util::Procs::Stop(tmpPID); //soft kill
|
||||
} else {
|
||||
ERROR_MSG("Killing unresponsive process %d", tmpPID);
|
||||
Util::Procs::Murder(tmpPID); //improved kill
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue