Lines Matching refs:process
46 static uv_process_t process; variable
66 static void exit_cb(uv_process_t* process, in exit_cb() argument
73 uv_close((uv_handle_t*) process, close_cb); in exit_cb()
77 static void fail_cb(uv_process_t* process, in fail_cb() argument
84 static void kill_cb(uv_process_t* process, in kill_cb() argument
106 uv_close((uv_handle_t*) process, close_cb); in kill_cb()
113 err = uv_kill(process->pid, 0); in kill_cb()
117 static void detach_failure_cb(uv_process_t* process, in detach_failure_cb() argument
177 uv_process_kill(&process, SIGTERM); in timer_cb()
193 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
195 ASSERT_OK(uv_is_active((uv_handle_t*) &process)); in TEST_IMPL()
196 uv_close((uv_handle_t*) &process, NULL); in TEST_IMPL()
213 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
215 ASSERT_OK(uv_is_active((uv_handle_t*) &process)); in TEST_IMPL()
220 err = waitpid(process.pid, &status, 0); in TEST_IMPL()
226 uv_close((uv_handle_t*) &process, NULL); in TEST_IMPL()
253 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
269 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
297 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
341 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
397 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
459 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
536 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
603 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
642 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
725 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
747 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
766 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
806 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
833 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
836 uv_unref((uv_handle_t*) &process); in TEST_IMPL()
843 ASSERT_EQ(process.pid, uv_process_get_pid(&process)); in TEST_IMPL()
845 r = uv_kill(process.pid, 0); in TEST_IMPL()
848 r = uv_kill(process.pid, SIGTERM); in TEST_IMPL()
884 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
933 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
939 r = uv_process_kill(&process, 0); in TEST_IMPL()
980 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
986 r = uv_process_kill(&process, 0); in TEST_IMPL()
1025 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1060 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1076 r = uv_kill(process.pid, 0); in TEST_IMPL()
1080 r = uv_kill(process.pid, SIGTERM); in TEST_IMPL()
1127 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1363 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1365 ASSERT_OK(uv_is_active((uv_handle_t*) &process)); in TEST_IMPL()
1366 uv_close((uv_handle_t*) &process, NULL); in TEST_IMPL()
1389 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1412 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1452 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1454 ASSERT_OK(uv_is_active((uv_handle_t*) &process)); in TEST_IMPL()
1455 uv_close((uv_handle_t*) &process, NULL); in TEST_IMPL()
1489 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1542 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1587 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1607 static void exit_cb_unexpected(uv_process_t* process, in exit_cb_unexpected() argument
1622 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1643 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1659 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1661 ASSERT_OK(uv_is_closing((uv_handle_t*) &process)); in TEST_IMPL()
1662 uv_close((uv_handle_t*) &process, NULL); in TEST_IMPL()
1664 ASSERT_EQ(1, uv_is_closing((uv_handle_t*) &process)); in TEST_IMPL()
1716 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1761 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
1762 uv_unref((uv_handle_t*) &process); in TEST_IMPL()
1801 ASSERT_OK(uv_process_kill(&process, SIGTERM)); in TEST_IMPL()
1869 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
1984 uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
2000 r = uv_spawn(uv_default_loop(), &process, &options); in TEST_IMPL()
2106 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()