Fixed NOSHM and WITH_THREADNAMES flags, added NOCRASHCHECK flag.
This commit is contained in:
parent
f463606152
commit
b93841f659
2 changed files with 11 additions and 2 deletions
|
@ -64,17 +64,24 @@ endif()
|
||||||
########################################
|
########################################
|
||||||
# Build Variables - Shared Memory #
|
# Build Variables - Shared Memory #
|
||||||
########################################
|
########################################
|
||||||
if (NOT DEFINED ${NOSHM} )
|
if (NOT DEFINED NOSHM )
|
||||||
add_definitions(-DSHM_ENABLED=1)
|
add_definitions(-DSHM_ENABLED=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Build Variables - Thread Names #
|
# Build Variables - Thread Names #
|
||||||
########################################
|
########################################
|
||||||
if (DEFINED ${WITH_THREADNAMES} )
|
if (DEFINED WITH_THREADNAMES )
|
||||||
add_definitions(-DWITH_THREADNAMES=1)
|
add_definitions(-DWITH_THREADNAMES=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
########################################
|
||||||
|
# Build Variables - No Crash Check #
|
||||||
|
########################################
|
||||||
|
if (DEFINED NOCRASHCHECK )
|
||||||
|
add_definitions(-DNOCRASHCHECK=1)
|
||||||
|
endif()
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Build Variables - Prepare for Build #
|
# Build Variables - Prepare for Build #
|
||||||
########################################
|
########################################
|
||||||
|
|
|
@ -772,6 +772,7 @@ namespace IPC {
|
||||||
DEBUG_MSG(DLVL_WARN, "Client %u disconnect timed out", id);
|
DEBUG_MSG(DLVL_WARN, "Client %u disconnect timed out", id);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
#ifndef NOCRASHCHECK
|
||||||
if(*counter > 10 && *counter < 126 ){
|
if(*counter > 10 && *counter < 126 ){
|
||||||
if(*counter < 30){
|
if(*counter < 30){
|
||||||
if (*counter > 15){
|
if (*counter > 15){
|
||||||
|
@ -783,6 +784,7 @@ namespace IPC {
|
||||||
Util::Procs::Murder(tmpPID); //improved kill
|
Util::Procs::Murder(tmpPID); //improved kill
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (*counter == 127 || *counter == 126 || *counter == 255 || *counter == 254) {
|
if (*counter == 127 || *counter == 126 || *counter == 255 || *counter == 254) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue