forked from Imagelibrary/rtems
2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1261/cpukit * posix/src/semaphorecreatesupp.c: Initialize all fields during semaphore creation.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1261/cpukit
|
||||
* posix/src/semaphorecreatesupp.c: Initialize all fields during
|
||||
semaphore creation.
|
||||
|
||||
2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
PR 1260/cpukit
|
||||
|
||||
@@ -78,9 +78,11 @@ int _POSIX_Semaphore_Create_support(
|
||||
the_semaphore->named = TRUE;
|
||||
the_semaphore->open_count = 1;
|
||||
the_semaphore->linked = TRUE;
|
||||
}
|
||||
else
|
||||
} else {
|
||||
the_semaphore->named = FALSE;
|
||||
the_semaphore->open_count = 0;
|
||||
the_semaphore->linked = FALSE;
|
||||
}
|
||||
|
||||
the_sem_attr = &the_semaphore->Semaphore.Attributes;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user