* cygserver.cc (main): Call listen right after creating the

transport.
	* transport_pipes.cc (transport_layer_pipes::listen): Create
	first instance of the named pipe here.  Connect the client side
	to block it for further use by the system.
	(transport_layer_pipes::accept): Don't handle first pipe instance
	here.  Change debug output accordingly.
This commit is contained in:
Corinna Vinschen
2012-11-23 15:19:41 +00:00
parent 916015a6af
commit 5ed0628cf0
3 changed files with 44 additions and 30 deletions

View File

@ -715,15 +715,15 @@ main (const int argc, char *argv[])
transport_layer_base *const transport = create_server_transport ();
assert (transport);
if (transport->listen () == -1)
return 1;
process_cache cache (process_cache_size, cleanup_threads);
server_submission_loop submission_loop (&request_queue, transport, &cache);
request_queue.add_submission_loop (&submission_loop);
if (transport->listen () == -1)
return 1;
cache.start ();
request_queue.start ();