process: Log when limiting the amount of locked memory

This can be useful for debugging.
This commit is contained in:
Andrea Bolognani 2015-11-12 14:46:12 +01:00
parent afbb8a4c8c
commit a6a5ac9650

View File

@ -766,6 +766,10 @@ virProcessSetMaxMemLock(pid_t pid, unsigned long long bytes)
return -1;
}
}
VIR_DEBUG("Locked memory for process %lld limited to %llu bytes",
(long long int) pid, bytes);
return 0;
}
#else /* ! (HAVE_SETRLIMIT && defined(RLIMIT_MEMLOCK)) */