Module: xenomai-head Branch: master Commit: aa749d2f611d513e9551fd7a4f56bb4cac278fb0 URL: http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=aa749d2f611d513e9551fd7a4f56bb4cac278fb0
Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org> Date: Sun Aug 22 16:52:32 2010 +0200 common: fix comment --- src/skins/common/sem_heap.c | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/skins/common/sem_heap.c b/src/skins/common/sem_heap.c index c2f62cd..189272e 100644 --- a/src/skins/common/sem_heap.c +++ b/src/skins/common/sem_heap.c @@ -75,19 +75,15 @@ static void unmap_on_fork(void) Otherwise the global heap would be used instead, which leads to unwanted effects. - We set xeno_sem_heap[PRIVATE] to NULL on machines with an - MMU, so that any reference to the private heap prior to + We set xeno_sem_heap[PRIVATE] to NULL. On machines with an + MMU, any reference to the private heap prior to re-binding will cause a segmentation fault. - On machines without an MMU, we keep the address unchanged, - it will cause unwanted mutual exclusion with the father, - but at least, we will not get any memory corruption. + On machines without an MMU, there is no such thing as fork. */ munmap((void *)xeno_sem_heap[PRIVATE], private_hdesc.size); -#ifdef CONFIG_MMU xeno_sem_heap[PRIVATE] = NULL; -#endif init_private_heap = PTHREAD_ONCE_INIT; } _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git