Skip to content

Commit

Permalink
test SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshGandhi-AWS committed Oct 3, 2023
1 parent b8e3eb5 commit 865fee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/tunneling/SecureTunnelingFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "TcpForward.h"
#include <aws/crt/mqtt/MqttClient.h>
#include <aws/iotsecuretunneling/SubscribeToTunnelsNotifyRequest.h>
#include <csignal>
#include <map>
#include <memory>
#include <thread>
Expand Down Expand Up @@ -279,7 +280,7 @@ namespace Aws
mContexts.erase(std::remove(mContexts.begin(), mContexts.end(), *it));
#if defined(DISABLE_MQTT)
LOG_INFO(TAG, "Secure Tunnel closed, component thread initiating feature shutdown");
raise(SIGTERM)
raise(SIGTERM);
// auto self = static_cast<Feature *>(this);
// mClientBaseNotifier->onEvent(self, ClientBaseEventNotification::FEATURE_SHUTDOWN);
#endif
Expand Down

0 comments on commit 865fee6

Please sign in to comment.