Lines Matching refs:worker
42 struct child_worker *worker = &workers[round_robin_counter];
43 uv_write2(write_req, (uv_stream_t*) &worker->pipe, &dummy_buf, 1, (uv_stream_t*) client, NULL);
54 strcpy(worker_path + (strlen(worker_path) - strlen("multi-echo-server")), "worker");
75 struct child_worker *worker = &workers[cpu_count];
76 uv_pipe_init(loop, &worker->pipe, 1);
80 child_stdio[0].data.stream = (uv_stream_t*) &worker->pipe;
85 worker->options.stdio = child_stdio;
86 worker->options.stdio_count = 3;
88 worker->options.exit_cb = close_process_handle;
89 worker->options.file = args[0];
90 worker->options.args = args;
92 uv_spawn(loop, &worker->req, &worker->options);
93 fprintf(stderr, "Started worker %d\n", worker->req.pid);