Lines Matching defs:process
70 * giving it to anyone, we're the only process holding a reference to it.
71 * That means that if this process exits it is closed and all the processes
849 * a child process has exited.
852 uv_process_t* process = (uv_process_t*) data;
853 uv_loop_t* loop = process->loop;
856 assert(process);
857 assert(!process->exit_cb_pending);
859 process->exit_cb_pending = 1;
862 POST_COMPLETION_FOR_REQ(loop, &process->exit_req);
866 /* Called on main thread after a child process has exited. */
881 /* Unregister from process notification. */
931 /* Clean-up the process handle. */
939 uv_process_t* process,
951 uv__process_init(loop, process);
952 process->exit_cb = options->exit_cb;
1043 err = uv__stdio_create(loop, options, &process->child_stdio_buffer);
1062 startup.cbReserved2 = uv__stdio_size(process->child_stdio_buffer);
1063 startup.lpReserved2 = (BYTE*) process->child_stdio_buffer;
1065 startup.hStdInput = uv__stdio_handle(process->child_stdio_buffer, 0);
1066 startup.hStdOutput = uv__stdio_handle(process->child_stdio_buffer, 1);
1067 startup.hStdError = uv__stdio_handle(process->child_stdio_buffer, 2);
1083 /* Use SW_HIDE to avoid any potential process window. */
1091 * means that libuv might not let you create a fully daemonized process
1120 process->process_handle = info.hProcess;
1121 process->pid = info.dwProcessId;
1123 /* If the process isn't spawned as detached, assign to the global job object
1124 * so windows will kill it when the parent process dies. */
1129 /* AssignProcessToJobObject might fail if this process is under job
1156 /* Setup notifications for when the child process exits. */
1157 result = RegisterWaitForSingleObject(&process->wait_handle,
1158 process->process_handle, exit_wait_callback, (void*)process, INFINITE,
1170 uv__handle_start(process);
1181 if (process->child_stdio_buffer != NULL) {
1183 uv__stdio_destroy(process->child_stdio_buffer);
1184 process->child_stdio_buffer = NULL;
1200 /* Unconditionally terminate the process. On Windows, killed processes
1208 /* If the process already exited before TerminateProcess was called,.
1221 /* Health check: is the process still alive? */
1240 int uv_process_kill(uv_process_t* process, int signum) {
1243 if (process->process_handle == INVALID_HANDLE_VALUE) {
1247 err = uv__kill(process->process_handle, signum);
1252 process->exit_signal = signum;