We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 573cba4 commit f20faddCopy full SHA for f20fadd
1 file changed
atopsar.c
@@ -369,8 +369,9 @@ atopsar(int argc, char *argv[])
369
*/
370
rlim.rlim_cur = RLIM_INFINITY;
371
rlim.rlim_max = RLIM_INFINITY;
372
- (void) setrlimit(RLIMIT_MEMLOCK, &rlim);
373
- (void) mlockall(MCL_CURRENT|MCL_FUTURE);
+
+ if (setrlimit(RLIMIT_MEMLOCK, &rlim) == 0)
374
+ (void) mlockall(MCL_CURRENT|MCL_FUTURE);
375
376
/*
377
** increment CPU scheduling-priority to get reliable samples (also
0 commit comments