force alter signal SIGTERM to SIGKILL
This commit is contained in:
@ -89,7 +89,7 @@ int ObSignalHandle::add_signums_to_set(sigset_t &sig_set)
|
|||||||
LOG_ERROR("Empty signal set error", K(ret));
|
LOG_ERROR("Empty signal set error", K(ret));
|
||||||
} else {
|
} else {
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
int signals[] = {SIGPIPE, SIGTERM,
|
int signals[] = {SIGPIPE, SIGTERM, SIGUSR1,
|
||||||
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
|
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
|
||||||
50, 51, 52, 53, 55, 56, 57, 59, 60, 62,
|
50, 51, 52, 53, 55, 56, 57, 59, 60, 62,
|
||||||
63, 64};
|
63, 64};
|
||||||
@ -114,9 +114,10 @@ int ObSignalHandle::deal_signals(int signum)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SIGTERM: {
|
case SIGTERM: {
|
||||||
#ifdef OB_BUILD_RPM
|
|
||||||
raise(SIGKILL);
|
raise(SIGKILL);
|
||||||
#endif
|
break;
|
||||||
|
}
|
||||||
|
case SIGUSR1: {
|
||||||
ObServer::get_instance().prepare_stop();
|
ObServer::get_instance().prepare_stop();
|
||||||
ObServer::get_instance().set_stop();
|
ObServer::get_instance().set_stop();
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user