Module: xenomai-3
Branch: master
Commit: 546488b5fe506d4c538c7c358e0b9a9677e295a5
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=546488b5fe506d4c538c7c358e0b9a9677e295a5

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Jul 26 12:51:42 2015 +0200

testsuite/switchtest: remove redundant mlockall()

---

 testsuite/switchtest/switchtest.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/testsuite/switchtest/switchtest.c 
b/testsuite/switchtest/switchtest.c
index c940b86..cf33c70 100644
--- a/testsuite/switchtest/switchtest.c
+++ b/testsuite/switchtest/switchtest.c
@@ -30,7 +30,6 @@
 #include <signal.h>
 #include <unistd.h>
 #include <pthread.h>
-#include <sys/mman.h>
 #include <semaphore.h>
 #include <setjmp.h>
 #include <getopt.h>
@@ -1126,11 +1125,6 @@ int main(int argc, const char *argv[])
        status = EXIT_SUCCESS;
 
        /* Initializations. */
-       if (mlockall(MCL_CURRENT|MCL_FUTURE)) {
-               perror("mlockall");
-               exit(EXIT_FAILURE);
-       }
-
        if (__STD(sem_init(&sleeper_start, 0, 0))) {
                perror("sem_init");
                exit(EXIT_FAILURE);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to