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

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

demo/can-rtt: remove redundant mlockall()

---

 demo/posix/can-rtt.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/demo/posix/can-rtt.c b/demo/posix/can-rtt.c
index 6c7c54d..0a3dff8 100644
--- a/demo/posix/can-rtt.c
+++ b/demo/posix/can-rtt.c
@@ -48,7 +48,6 @@
 #include <netinet/in.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
-#include <sys/mman.h>
 
 #ifdef CONFIG_XENO_COBALT
 #include <rtdm/can.h>
@@ -318,7 +317,6 @@ int main(int argc, char *argv[])
     signal(SIGTERM, catch_signal);
     signal(SIGINT, catch_signal);
     signal(SIGHUP, catch_signal);
-    mlockall(MCL_CURRENT|MCL_FUTURE);
 
     printf("Round-Trip-Time test %s -> %s with CAN ID 0x%x\n",
           argv[optind], argv[optind + 1], can_id);


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

Reply via email to