Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Baichoo <kbaichoo@google.com>
  • Loading branch information
KBaichoo committed Oct 13, 2020
1 parent 3b8841c commit 931b0e7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion api/envoy/watchdog/abort_action/v3alpha/abort_action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ option (udpa.annotations.file_status).work_in_progress = true;
option (udpa.annotations.file_status).package_version_status = ACTIVE;

// [#protodoc-title: Watchdog Action that kills a stuck thread to kill the process.]
// [#extension: envoy.watchdog.abort_action]

// A GuardDogAction that will terminate the process by killing the
// stuck thread. This would allow easier access to the call stack of the stuck
Expand Down
2 changes: 1 addition & 1 deletion docs/root/api-v3/config/watchdog/watchdog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Watchdog
:maxdepth: 2

../../extensions/watchdog/profile_action/v3alpha/*
../../extensions/watchdog/abort_action/v3alpha/*
../../watchdog/abort_action/v3alpha/*
1 change: 1 addition & 0 deletions source/common/thread/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ envoy_cc_library(
hdrs = ["terminate_thread.h"],
deps = [
"//include/envoy/thread:thread_interface",
"//source/common/common:minimal_logger_lib",
],
)
2 changes: 2 additions & 0 deletions source/common/thread/terminate_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <csignal>

#include "common/common/logger.h"

namespace Envoy {
namespace Thread {
namespace {
Expand Down
2 changes: 1 addition & 1 deletion test/server/server_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ TEST_P(ServerInstanceImplTest, UsesAbortActionOnWatchdogKill) {
// Wait for the sleep to run, we should die by the watchdog by then.
main_thread_slept.WaitForNotification();
},
"Caught Aborted");
"(ABRT|Caught Abort)");
}

} // namespace
Expand Down

0 comments on commit 931b0e7

Please sign in to comment.