diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-11-26 22:29:35 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-11-26 22:29:35 +0000 |
commit | 1d88f8cea2f22cc8a5dab4db4238481666d50254 (patch) | |
tree | 15cfe4a404156db9048a11d93c61423f241c6b37 /winsup/cygserver/sysv_sem.cc | |
parent | a2acbfb14e3e1d145a92c44abbce0398f54a8fd6 (diff) | |
download | newlib-1d88f8cea2f22cc8a5dab4db4238481666d50254.zip newlib-1d88f8cea2f22cc8a5dab4db4238481666d50254.tar.gz newlib-1d88f8cea2f22cc8a5dab4db4238481666d50254.tar.bz2 |
* cygserver.cc (main): Move call to ipcinit() up before installing
any threads.
* sysv_sem.cc: Update to FreeBSD version 1.67.
(seminit): Initialize semaphore sequence numbers to 0.
Diffstat (limited to 'winsup/cygserver/sysv_sem.cc')
-rw-r--r-- | winsup/cygserver/sysv_sem.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygserver/sysv_sem.cc b/winsup/cygserver/sysv_sem.cc index ac5efcd..ccb7a12 100644 --- a/winsup/cygserver/sysv_sem.cc +++ b/winsup/cygserver/sysv_sem.cc @@ -17,7 +17,7 @@ #ifndef __FBSDID #define __FBSDID(s) const char version[] = (s) #endif -__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/kern/sysv_sem.c,v 1.66 2003/11/10 07:22:41 tjr Exp $"); +__FBSDID("$FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/kern/sysv_sem.c,v 1.67 2003/11/15 11:56:53 tjr Exp $"); #define _KERNEL 1 #define __BSD_VISIBLE 1 @@ -228,6 +228,7 @@ seminit(void) for (i = 0; i < seminfo.semmni; i++) { sema[i].sem_base = 0; sema[i].sem_perm.mode = 0; + sema[i].sem_perm.seq = 0; } for (i = 0; i < seminfo.semmni; i++) mtx_init(&sema_mtx[i], "semid", NULL, MTX_DEF); |