[Xenomai-git] Philippe Gerum : smokey/sigdebug: use mapping also compatible with NOMMU

2015-11-10 Thread git repository hosting
Module: xenomai-3
Branch: stable-3.0.x
Commit: 7764799876b0b143d258de6b823436893ac280ed
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=7764799876b0b143d258de6b823436893ac280ed

Author: Philippe Gerum 
Date:   Tue Nov 10 15:57:00 2015 +0100

smokey/sigdebug: use mapping also compatible with NOMMU

---

 testsuite/smokey/sigdebug/sigdebug.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/sigdebug/sigdebug.c 
b/testsuite/smokey/sigdebug/sigdebug.c
index 05aa821..a643305 100644
--- a/testsuite/smokey/sigdebug/sigdebug.c
+++ b/testsuite/smokey/sigdebug/sigdebug.c
@@ -217,7 +217,7 @@ static int run_sigdebug(struct smokey_test *t, int argc, 
char *const argv[])
check_no_error("mkstemp", -errno);
unlink(tempname);
check_no_error("unlink", -errno);
-   mem = mmap(NULL, 1, PROT_READ, MAP_SHARED, tmp_fd, 0);
+   mem = mmap(NULL, 1, PROT_READ, MAP_PRIVATE, tmp_fd, 0);
check_no_error("mmap", -errno);
err = write(tmp_fd, "X", 1);
check("write", err, 1);


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


[Xenomai-git] Philippe Gerum : smokey/sigdebug: use mapping also compatible with NOMMU

2015-11-10 Thread git repository hosting
Module: xenomai-3
Branch: next
Commit: fbfea94836c2f6aff16b491e6114cb2ccf635891
URL:
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=fbfea94836c2f6aff16b491e6114cb2ccf635891

Author: Philippe Gerum 
Date:   Tue Nov 10 15:57:00 2015 +0100

smokey/sigdebug: use mapping also compatible with NOMMU

---

 testsuite/smokey/sigdebug/sigdebug.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuite/smokey/sigdebug/sigdebug.c 
b/testsuite/smokey/sigdebug/sigdebug.c
index 05aa821..a643305 100644
--- a/testsuite/smokey/sigdebug/sigdebug.c
+++ b/testsuite/smokey/sigdebug/sigdebug.c
@@ -217,7 +217,7 @@ static int run_sigdebug(struct smokey_test *t, int argc, 
char *const argv[])
check_no_error("mkstemp", -errno);
unlink(tempname);
check_no_error("unlink", -errno);
-   mem = mmap(NULL, 1, PROT_READ, MAP_SHARED, tmp_fd, 0);
+   mem = mmap(NULL, 1, PROT_READ, MAP_PRIVATE, tmp_fd, 0);
check_no_error("mmap", -errno);
err = write(tmp_fd, "X", 1);
check("write", err, 1);


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