Hi!
In the POSIX skin of the fusion tree, sem.c there is a queue
(pse51_semq)
(http://www.rts.uni-hannover.de/rtai/lxr/source/skins/posix/sem.c?v=cvs-unstable#L22)
that should contain all sema object of that skin.
But in sem_init the sema object is not added to that queue. The attached
patch fixes this.
Marc
--
#!/bin/sh
set - `type $0` 'tr "[a-zA-Z]" "[n-za-mN-ZA-M]"';while [ "$2" != "" ];do \
shift;done; echo 'frq -a -rc '`echo "$0"| $1 `'>$UBZR/.`rpub signature|'`\
echo $1|$1`'`;rpub "Jr ner fvtangher bs obet. Erfvfgnapr vf shgvyr!"'|$1|sh
Index: skins/posix/sem.c
===================================================================
RCS file: /cvs/rtai/fusion/skins/posix/sem.c,v
retrieving revision 1.2
diff -u -p -r1.2 sem.c
--- skins/posix/sem.c 18 Jun 2004 15:13:13 -0000 1.2
+++ skins/posix/sem.c 15 Jul 2004 20:18:32 -0000
@@ -211,6 +211,7 @@ int sem_init (sem_t *sem, int pshared, u
sem->magic = PSE51_SEM_MAGIC;
inith(&sem->link);
+ appendq(&pse51_semq, &sem->link);
xnsynch_init(&sem->synchbase, XNSYNCH_PRIO);
sem->value = value;