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 7eb9d8f commit b8e3eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,6 @@ int main(int argc, char *argv[])
LOG_WARN(TAG, "Unable to append current working directory to PATH environment variable.");
}

#if defined(DISABLE_MQTT)
deviceClientAbort("Manually ending the process", EXIT_SUCCESS);
#endif

#if !defined(DISABLE_MQTT)
/**
* init() is currently responsible for making sure only 1 instance of Device Client is running at a given time.
Expand Down
6 changes: 3 additions & 3 deletions source/tunneling/SecureTunnelingFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ 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");
auto self = static_cast<Feature *>(this);
mClientBaseNotifier->onEvent(self, ClientBaseEventNotification::FEATURE_SHUTDOWN);
return;
raise(SIGTERM)
// auto self = static_cast<Feature *>(this);
// mClientBaseNotifier->onEvent(self, ClientBaseEventNotification::FEATURE_SHUTDOWN);
#endif
}

Expand Down

0 comments on commit b8e3eb5

Please sign in to comment.