aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygserver/cygserver.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-11-26 22:29:35 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-11-26 22:29:35 +0000
commit1d88f8cea2f22cc8a5dab4db4238481666d50254 (patch)
tree15cfe4a404156db9048a11d93c61423f241c6b37 /winsup/cygserver/cygserver.cc
parenta2acbfb14e3e1d145a92c44abbce0398f54a8fd6 (diff)
downloadnewlib-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/cygserver.cc')
-rw-r--r--winsup/cygserver/cygserver.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/winsup/cygserver/cygserver.cc b/winsup/cygserver/cygserver.cc
index 355060f..0cc6244 100644
--- a/winsup/cygserver/cygserver.cc
+++ b/winsup/cygserver/cygserver.cc
@@ -726,6 +726,8 @@ main (const int argc, char *argv[])
if (wincap.has_security () && !setup_privileges ())
panic ("Setting process privileges failed.");
+ ipcinit ();
+
/*XXXXX*/
threaded_queue request_queue (request_threads);
@@ -739,11 +741,7 @@ main (const int argc, char *argv[])
request_queue.add_submission_loop (&submission_loop);
if (transport->listen () == -1)
- {
- exit (1);
- }
-
- ipcinit ();
+ return 1;
cache.start ();