summaryrefslogtreecommitdiff
path: root/src/mongo/util/signal_handlers.cpp
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 16:42:10 -0400
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2019-06-14 19:23:18 -0400
commit47b380f03e8898f4706ff01fa2be64dfb72e0dba (patch)
treefb3508758c9abd0e297afee43ac847bf5aebcbbb /src/mongo/util/signal_handlers.cpp
parentb3c26131f6ab3f919beca658341e737de5d45683 (diff)
downloadmongo-47b380f03e8898f4706ff01fa2be64dfb72e0dba.tar.gz
SERVER-41071 Replace NULL and 0 with nullptr
Diffstat (limited to 'src/mongo/util/signal_handlers.cpp')
-rw-r--r--src/mongo/util/signal_handlers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/signal_handlers.cpp b/src/mongo/util/signal_handlers.cpp
index 707a76f3233..f6f81234c11 100644
--- a/src/mongo/util/signal_handlers.cpp
+++ b/src/mongo/util/signal_handlers.cpp
@@ -180,7 +180,7 @@ void signalProcessingThread(LogFileStatus rotate) {
switch (actualSignal) {
case SIGUSR1:
// log rotate signal
- signalTimeSeconds = time(0);
+ signalTimeSeconds = time(nullptr);
if (signalTimeSeconds <= lastSignalTimeSeconds) {
// ignore multiple signals in the same or earlier second.
break;
@@ -227,7 +227,7 @@ void startSignalProcessingThread(LogFileStatus rotate) {
stdx::thread(eventProcessingThread).detach();
#else
// Mask signals in the current (only) thread. All new threads will inherit this mask.
- invariant(pthread_sigmask(SIG_SETMASK, &asyncSignals, 0) == 0);
+ invariant(pthread_sigmask(SIG_SETMASK, &asyncSignals, nullptr) == 0);
// Spawn a thread to capture the signals we just masked off.
stdx::thread(signalProcessingThread, rotate).detach();
#endif