mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:25:07 -05:00
Fix memlockall patch
This commit is contained in:
20
main.c
20
main.c
@@ -309,6 +309,14 @@ int main
|
||||
CAM_Initialise();
|
||||
RTC_Initialise();
|
||||
|
||||
if (SchedPriority > 0) {
|
||||
SYS_SetScheduler(SchedPriority);
|
||||
}
|
||||
|
||||
if (LockAll == 1 ) {
|
||||
SYS_MemLockAll(LockAll);
|
||||
}
|
||||
|
||||
if (user)
|
||||
SYS_DropRoot(user);
|
||||
|
||||
@@ -339,18 +347,6 @@ int main
|
||||
signal(SIGHUP, signal_cleanup);
|
||||
#endif /* WINNT */
|
||||
|
||||
#if defined(HAVE_SCHED_SETSCHEDULER)
|
||||
if (SchedPriority > 0) {
|
||||
SYS_SetScheduler(SchedPriority);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_MLOCKALL)
|
||||
if (LockAll == 1 ) {
|
||||
SYS_MemLockAll(LockAll);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* The program normally runs under control of the main loop in
|
||||
the scheduler. */
|
||||
SCH_MainLoop();
|
||||
|
||||
Reference in New Issue
Block a user