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:
Joel Sherrill
2007-09-14 14:53:00 +00:00
parent 36f1913173
commit 622e09b440
2 changed files with 10 additions and 2 deletions

View File

@@ -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> 2007-09-14 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1260/cpukit PR 1260/cpukit

View File

@@ -78,9 +78,11 @@ int _POSIX_Semaphore_Create_support(
the_semaphore->named = TRUE; the_semaphore->named = TRUE;
the_semaphore->open_count = 1; the_semaphore->open_count = 1;
the_semaphore->linked = TRUE; the_semaphore->linked = TRUE;
} } else {
else
the_semaphore->named = FALSE; the_semaphore->named = FALSE;
the_semaphore->open_count = 0;
the_semaphore->linked = FALSE;
}
the_sem_attr = &the_semaphore->Semaphore.Attributes; the_sem_attr = &the_semaphore->Semaphore.Attributes;