Lines Matching defs:process

46 static uv_process_t process;
66 static void exit_cb(uv_process_t* process,
73 uv_close((uv_handle_t*) process, close_cb);
77 static void fail_cb(uv_process_t* process,
84 static void kill_cb(uv_process_t* process,
99 * process that is still starting up kills it with SIGKILL instead of SIGTERM.
106 uv_close((uv_handle_t*) process, close_cb);
110 * child process is still alive, not kill it.
111 * This process should be dead.
113 err = uv_kill(process->pid, 0);
117 static void detach_failure_cb(uv_process_t* process,
177 uv_process_kill(&process, SIGTERM);
193 r = uv_spawn(uv_default_loop(), &process, &options);
195 ASSERT_OK(uv_is_active((uv_handle_t*) &process));
196 uv_close((uv_handle_t*) &process, NULL);
213 r = uv_spawn(uv_default_loop(), &process, &options);
215 ASSERT_OK(uv_is_active((uv_handle_t*) &process));
220 err = waitpid(process.pid, &status, 0);
226 uv_close((uv_handle_t*) &process, NULL);
253 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
269 r = uv_spawn(uv_default_loop(), &process, &options);
297 r = uv_spawn(uv_default_loop(), &process, &options);
307 ASSERT_EQ(2, close_cb_called); /* Once for process once for the pipe. */
341 r = uv_spawn(uv_default_loop(), &process, &options);
397 r = uv_spawn(uv_default_loop(), &process, &options);
459 r = uv_spawn(uv_default_loop(), &process, &options);
526 /* now we're going to swap them: the child process' stdout will be our
536 r = uv_spawn(uv_default_loop(), &process, &options);
603 r = uv_spawn(uv_default_loop(), &process, &options);
618 ASSERT_EQ(3, close_cb_called); /* Once for process twice for the pipe. */
642 r = uv_spawn(uv_default_loop(), &process, &options);
652 ASSERT_EQ(2, close_cb_called); /* Once for process once for the pipe. */
678 * passed down from the parent process
725 r = uv_spawn(uv_default_loop(), &process, &options);
747 r = uv_spawn(uv_default_loop(), &process, &options);
766 r = uv_spawn(uv_default_loop(), &process, &options);
779 ASSERT_EQ(2, close_cb_called); /* Once for process and once for timer. */
806 r = uv_spawn(uv_default_loop(), &process, &options);
833 r = uv_spawn(uv_default_loop(), &process, &options);
836 uv_unref((uv_handle_t*) &process);
843 ASSERT_EQ(process.pid, uv_process_get_pid(&process));
845 r = uv_kill(process.pid, 0);
848 r = uv_kill(process.pid, SIGTERM);
884 r = uv_spawn(uv_default_loop(), &process, &options);
907 ASSERT_EQ(5, close_cb_called); /* process x 1, timer x 1, stdio x 3. */
933 r = uv_spawn(uv_default_loop(), &process, &options);
937 * child process is still alive, not kill it.
939 r = uv_process_kill(&process, 0);
980 r = uv_spawn(uv_default_loop(), &process, &options);
984 * child process is still alive, not kill it.
986 r = uv_process_kill(&process, 0);
1023 close(0); /* Close process stdin. */
1025 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1033 ASSERT_EQ(2, close_cb_called); /* process, child stdin */
1060 r = uv_spawn(uv_default_loop(), &process, &options);
1074 * child process is still alive, not kill it.
1076 r = uv_kill(process.pid, 0);
1079 /* Kill the process. */
1080 r = uv_kill(process.pid, SIGTERM);
1127 r = uv_spawn(uv_default_loop(), &process, &options);
1137 ASSERT_EQ(2, close_cb_called); /* Once for process once for the pipe. */
1266 * in process.c, minus variables in wenvironment */
1363 r = uv_spawn(uv_default_loop(), &process, &options);
1365 ASSERT_OK(uv_is_active((uv_handle_t*) &process));
1366 uv_close((uv_handle_t*) &process, NULL);
1389 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1412 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1431 /* Set up the process, but make sure that the file to run is relative and
1452 r = uv_spawn(uv_default_loop(), &process, &options);
1454 ASSERT_OK(uv_is_active((uv_handle_t*) &process));
1455 uv_close((uv_handle_t*) &process, NULL);
1489 r = uv_spawn(uv_default_loop(), &process, &options);
1542 r = uv_spawn(uv_default_loop(), &process, &options);
1587 r = uv_spawn(uv_default_loop(), &process, &options);
1607 static void exit_cb_unexpected(uv_process_t* process,
1622 r = uv_spawn(uv_default_loop(), &process, &options);
1643 r = uv_spawn(uv_default_loop(), &process, &options);
1659 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1661 ASSERT_OK(uv_is_closing((uv_handle_t*) &process));
1662 uv_close((uv_handle_t*) &process, NULL);
1664 ASSERT_EQ(1, uv_is_closing((uv_handle_t*) &process));
1716 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1732 ASSERT_EQ(2, close_cb_called); /* One for `in`, one for process */
1747 /* create a pipe and share it with a child process */
1761 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));
1762 uv_unref((uv_handle_t*) &process);
1801 ASSERT_OK(uv_process_kill(&process, SIGTERM));
1831 /* Set up the process, but make sure that the file to run is relative and
1869 r = uv_spawn(uv_default_loop(), &process, &options);
1984 uv_spawn(uv_default_loop(), &process, &options);
2000 r = uv_spawn(uv_default_loop(), &process, &options);
2029 /* Helper for child process of spawn_inherit_streams */
2106 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options));