any threads.
* sysv_sem.cc: Update to FreeBSD version 1.67.
(seminit): Initialize semaphore sequence numbers to 0.
+2003-11-26 Corinna Vinschen <corinna@vinschen.de>
+
+ * 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.
+
2003-11-26 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a in
if (wincap.has_security () && !setup_privileges ())
panic ("Setting process privileges failed.");
+ ipcinit ();
+
/*XXXXX*/
threaded_queue request_queue (request_threads);
request_queue.add_submission_loop (&submission_loop);
if (transport->listen () == -1)
- {
- exit (1);
- }
-
- ipcinit ();
+ return 1;
cache.start ();
#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
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);