Skip to content

Commit

Permalink
Lipsticks
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Jan 22, 2024
1 parent 6e350a4 commit adc1fa3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions external/concealer/src/field_operator_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ auto FieldOperatorApplication::checkAutowareProcess() -> void

auto FieldOperatorApplication::shutdownAutoware() -> void
{
stopRequest();

if (process_id != 0 && not is_autoware_exited) {
is_autoware_exited = true;

sendSIGINT();

if (stopRequest(); process_id != 0 && not std::exchange(is_autoware_exited, true)) {
const auto sigset = [this]() {
if (auto signal_set = sigset_t();
sigemptyset(&signal_set) or sigaddset(&signal_set, SIGCHLD)) {
Expand All @@ -104,7 +98,7 @@ auto FieldOperatorApplication::shutdownAutoware() -> void
return timeout;
}();

if (sigtimedwait(&sigset, nullptr, &timeout) < 0) {
if (sendSIGINT(); sigtimedwait(&sigset, nullptr, &timeout) < 0) {
switch (errno) {
case EINTR:
/*
Expand Down

0 comments on commit adc1fa3

Please sign in to comment.