summaryrefslogtreecommitdiffstats
path: root/configd
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-07-02 11:34:59 +0000
committerArne Juul <arnej@verizonmedia.com>2020-07-03 08:02:38 +0000
commitb44f17a9195eaf819128b5be78e334d5fd8b4f2c (patch)
treef4000ba0ee5133c7fbb6d7323714727eafcba8b4 /configd
parentb8647a23221786bc7e04d24e64af1cd3e3dcdec5 (diff)
use std::_Exit()
Diffstat (limited to 'configd')
-rw-r--r--configd/src/apps/sentinel/service.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp
index a502ce50f71..bb6eff9f6ae 100644
--- a/configd/src/apps/sentinel/service.cpp
+++ b/configd/src/apps/sentinel/service.cpp
@@ -215,7 +215,7 @@ Service::start()
}
EV_STARTING(name().c_str());
runChild(pipes); // This function should not return.
- _exit(EXIT_FAILURE);
+ std::_Exit(EXIT_FAILURE);
}
close(pipes[1]); // close writing end
@@ -373,7 +373,7 @@ Service::runChild(int pipes[2])
snprintf(buf, sizeof buf, "open /dev/null for fd 0: got %d "
"(%s)", fd, strerror(errno));
[[maybe_unused]] auto writeRes = write(pipes[1], buf, strlen(buf));
- _exit(EXIT_FAILURE);
+ std::_Exit(EXIT_FAILURE);
}
fcntl(0, F_SETFD, 0); // Don't close on exec
@@ -383,7 +383,7 @@ Service::runChild(int pipes[2])
snprintf(buf, sizeof buf, "exec error: %s for /bin/sh -c '%s'",
strerror(errno), _config->command.c_str());
[[maybe_unused]] auto writeRes = write(pipes[1], buf, strlen(buf));
- _exit(EXIT_FAILURE);
+ std::_Exit(EXIT_FAILURE);
}
const vespalib::string &