diff options
Diffstat (limited to 'configd/src/apps/sentinel/service.cpp')
-rw-r--r-- | configd/src/apps/sentinel/service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp index 49944043259..dc62d687007 100644 --- a/configd/src/apps/sentinel/service.cpp +++ b/configd/src/apps/sentinel/service.cpp @@ -161,7 +161,7 @@ Service::start() return -1; } - fflush(NULL); + fflush(nullptr); _pid = fork(); if (_pid == -1) { LOG(error, "%s: Attempted to start, but fork() failed: %s", name().c_str(), @@ -342,7 +342,7 @@ Service::runChild(int pipes[2]) } fcntl(0, F_SETFD, 0); // Don't close on exec - execl("/bin/sh", "/bin/sh", "-c", _config->command.c_str(), NULL); + execl("/bin/sh", "/bin/sh", "-c", _config->command.c_str(), nullptr); char buf[200]; snprintf(buf, sizeof buf, "exec error: %s for /bin/sh -c '%s'", |