… | |
… | |
239 | |
239 | |
240 | log_to (LOGTO_SYSLOG | LOGTO_STDERR); |
240 | log_to (LOGTO_SYSLOG | LOGTO_STDERR); |
241 | |
241 | |
242 | /* Lock all pages into memory if requested */ |
242 | /* Lock all pages into memory if requested */ |
243 | |
243 | |
244 | #if HAVE_MLOCKALL && HAVE_SYS_MMAN_H |
244 | #if HAVE_MLOCKALL && HAVE_SYS_MMAN_H && _POSIX_MEMLOCK |
245 | if (do_mlock) |
245 | if (do_mlock) |
246 | if (mlockall (MCL_CURRENT | MCL_FUTURE)) |
246 | if (mlockall (MCL_CURRENT | MCL_FUTURE)) |
247 | slog (L_ERR, _("system call `%s' failed: %s"), "mlockall", strerror (errno)); |
247 | slog (L_ERR, _("system call `%s' failed: %s"), "mlockall", strerror (errno)); |
248 | #endif |
248 | #endif |
249 | |
249 | |