mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 22:30:29 +00:00
cmUVSignalHackRAII: Use nullptr instead of NULL
This commit is contained in:
@@ -48,10 +48,10 @@ public:
|
|||||||
this->HackSignal.init(this->HackLoop);
|
this->HackSignal.init(this->HackLoop);
|
||||||
this->HackSignal.start(HackCB, SIGCHLD);
|
this->HackSignal.start(HackCB, SIGCHLD);
|
||||||
struct sigaction hack_sa;
|
struct sigaction hack_sa;
|
||||||
sigaction(SIGCHLD, NULL, &hack_sa);
|
sigaction(SIGCHLD, nullptr, &hack_sa);
|
||||||
if (!(hack_sa.sa_flags & SA_RESTART)) {
|
if (!(hack_sa.sa_flags & SA_RESTART)) {
|
||||||
hack_sa.sa_flags |= SA_RESTART;
|
hack_sa.sa_flags |= SA_RESTART;
|
||||||
sigaction(SIGCHLD, &hack_sa, NULL);
|
sigaction(SIGCHLD, &hack_sa, nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
~cmUVSignalHackRAII()
|
~cmUVSignalHackRAII()
|
||||||
|
|||||||
Reference in New Issue
Block a user