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

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

utils/can: remove redundant mlockall()

---

 utils/can/rtcanrecv.c |    3 ---
 utils/can/rtcansend.c |    3 ---
 2 files changed, 6 deletions(-)

diff --git a/utils/can/rtcanrecv.c b/utils/can/rtcanrecv.c
index 17b2a48..e6e87b3 100644
--- a/utils/can/rtcanrecv.c
+++ b/utils/can/rtcanrecv.c
@@ -5,7 +5,6 @@
 #include <time.h>
 #include <errno.h>
 #include <getopt.h>
-#include <sys/mman.h>
 
 #include <alchemy/task.h>
 
@@ -176,8 +175,6 @@ int main(int argc, char **argv)
        { 0, 0, 0, 0},
     };
 
-    mlockall(MCL_CURRENT | MCL_FUTURE);
-
     signal(SIGTERM, cleanup_and_exit);
     signal(SIGINT, cleanup_and_exit);
 
diff --git a/utils/can/rtcansend.c b/utils/can/rtcansend.c
index 1c1f916..51fc080 100644
--- a/utils/can/rtcansend.c
+++ b/utils/can/rtcansend.c
@@ -5,7 +5,6 @@
 #include <time.h>
 #include <errno.h>
 #include <getopt.h>
-#include <sys/mman.h>
 
 #include <alchemy/task.h>
 #include <alchemy/timer.h>
@@ -140,8 +139,6 @@ int main(int argc, char **argv)
        { 0, 0, 0, 0},
     };
 
-    mlockall(MCL_CURRENT | MCL_FUTURE);
-
     signal(SIGTERM, cleanup_and_exit);
     signal(SIGINT, cleanup_and_exit);
 


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

Reply via email to