* 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:
@ -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 ();
|
||||
|
Reference in New Issue
Block a user