diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-07-02 11:34:59 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-07-03 08:02:38 +0000 |
commit | b44f17a9195eaf819128b5be78e334d5fd8b4f2c (patch) | |
tree | f4000ba0ee5133c7fbb6d7323714727eafcba8b4 | |
parent | b8647a23221786bc7e04d24e64af1cd3e3dcdec5 (diff) |
use std::_Exit()
-rw-r--r-- | configd/src/apps/sentinel/service.cpp | 6 |
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 & |