Skip to content

Commit e42ed4d

Browse files
authored
Fixed typo. (envoyproxy#14171)
Signed-off-by: Kevin Baichoo <[email protected]>
1 parent 6a8785c commit e42ed4d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

source/common/signal/fatal_action.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ enum class Status {
1717

1818
// We either haven't set up the Fatal Action manager, or we unregistered it
1919
// as the server terminated.
20-
ActionManangerUnset,
20+
ActionManagerUnset,
2121

2222
// Another thread beat us to running the Fatal Actions.
2323
RunningOnAnotherThread,

source/common/signal/fatal_error_handler.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ FatalAction::Status runFatalActions(FatalActionType action_type) {
6767
FatalAction::FatalActionManager* action_manager = fatal_action_manager.load();
6868

6969
if (action_manager == nullptr) {
70-
return FatalAction::Status::ActionManangerUnset;
70+
return FatalAction::Status::ActionManagerUnset;
7171
}
7272

7373
int64_t my_tid = action_manager->getThreadFactory().currentThreadId().getId();

source/common/signal/signal_action.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void SignalAction::sigHandler(int sig, siginfo_t* info, void* context) {
3232
FatalErrorHandler::callFatalErrorHandlers(std::cerr);
3333
FatalErrorHandler::runUnsafeActions();
3434
break;
35-
case FatalAction::Status::ActionManangerUnset:
35+
case FatalAction::Status::ActionManagerUnset:
3636
FatalErrorHandler::callFatalErrorHandlers(std::cerr);
3737
break;
3838
case FatalAction::Status::RunningOnAnotherThread: {

test/common/signal/fatal_action_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ class FatalActionTest : public ::testing::Test {
6262

6363
TEST_F(FatalActionTest, ShouldNotBeAbleToRunActionsBeforeRegistration) {
6464
// Call the actions
65-
EXPECT_EQ(FatalErrorHandler::runSafeActions(), Status::ActionManangerUnset);
66-
EXPECT_EQ(FatalErrorHandler::runUnsafeActions(), Status::ActionManangerUnset);
65+
EXPECT_EQ(FatalErrorHandler::runSafeActions(), Status::ActionManagerUnset);
66+
EXPECT_EQ(FatalErrorHandler::runUnsafeActions(), Status::ActionManagerUnset);
6767
}
6868

6969
TEST_F(FatalActionTest, ShouldOnlyBeAbleToRegisterFatalActionsOnce) {

0 commit comments

Comments
 (0)