Home
last modified time | relevance | path

Searched refs:process (Results 1 – 25 of 37) sorted by relevance

12

/libuv/docs/src/
H A Dprocess.rst20 Options for spawning the process (passed to :c:func:`uv_spawn`.
51 * Set the child process' user id.
55 * Set the child process' group id.
65 * Spawn the child process in a detached state - this will make it a process
69 * the child's process handle.
122 * in the child process:
182 Callback called after the process exits.
237 process.
247 this process don't accidentally inherit these handles.
259 Initializes the process handle and starts the process. If the process is
[all …]
H A Dloop.rst203 Reinitialize any kernel state necessary in the child process after
207 child process.
210 loop created in the parent process that you plan to continue to
216 parent and child or aborting the child process.
219 process instead of reusing a loop created in the parent. New loops
220 created in the child process after the fork should not use this
233 parent process *for any event loop*, the child process will no
242 the parent process at the time of forking will *not* deliver
243 events in the child process; they must be closed and restarted.
H A Dapi.rst21 process
H A Dmisc.rst315 Gets the title of the current process. You *must* call `uv_setup_args`
319 If `size` cannot accommodate the process title and terminating `nul`
334 Sets the current process title. You *must* call `uv_setup_args` before
337 platforms with a fixed size buffer for the process title the contents of
349 Gets the resident set size (RSS) for the current process.
357 Gets the resource usage measures for the current process.
365 Returns the current process ID.
371 Returns the parent process ID.
797 Sets the scheduling priority of the process specified by `pid`. The
806 process priority, the result will equal one of the `UV_PRIORITY`
[all …]
H A Dtty.rst48 /* The console cannot process virtual terminal sequences. (Legacy
108 values for the next process to take over.
H A Dfs_event.rst15 - ahafs tracks monitoring per process and is not thread safe. A separate process
H A Dmigration_010_100.rst7 Some APIs changed quite a bit throughout the 1.0.0 development process. Here
80 threads per process.
/libuv/src/unix/
H A Dprocess.c102 uv_process_t* process; in uv__wait_children() local
147 assert(pid == process->pid); in uv__wait_children()
148 process->status = status; in uv__wait_children()
160 uv__queue_init(&process->queue); in uv__wait_children()
161 uv__handle_stop(process); in uv__wait_children()
163 if (process->exit_cb == NULL) in uv__wait_children()
167 if (WIFEXITED(process->status)) in uv__wait_children()
174 process->exit_cb(process, exit_status, term_signal); in uv__wait_children()
980 process->status = 0; in uv_spawn()
1040 process->pid = pid; in uv_spawn()
[all …]
H A Dkqueue.c168 uv_process_t* process; in uv__io_poll() local
342 process = uv__queue_data(q, uv_process_t, queue); in uv__io_poll()
343 if (process->pid == fd) { in uv__io_poll()
344 process->flags |= UV_HANDLE_REAP; in uv__io_poll()
/libuv/test/
H A Dtest-spawn.c46 static uv_process_t process; variable
113 err = uv_kill(process->pid, 0); in kill_cb()
177 uv_process_kill(&process, SIGTERM); in timer_cb()
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()
939 r = uv_process_kill(&process, 0); in TEST_IMPL()
986 r = uv_process_kill(&process, 0); in TEST_IMPL()
1076 r = uv_kill(process.pid, 0); in TEST_IMPL()
[all …]
H A Dtest-process-title.c79 static void exit_cb(uv_process_t* process, int64_t status, int signo) { in exit_cb() argument
82 uv_close((uv_handle_t*) process, NULL); in exit_cb()
88 uv_process_t process; in TEST_IMPL() local
120 ASSERT_OK(uv_spawn(uv_default_loop(), &process, &options)); in TEST_IMPL()
H A Dbenchmark-spawn.c32 static uv_process_t process; variable
67 static void exit_cb(uv_process_t* process, in exit_cb() argument
72 uv_close((uv_handle_t*)process, process_close_cb); in exit_cb()
125 r = uv_spawn(loop, &process, &options); in spawn()
H A Drunner-win.c162 p->process = pi.hProcess; in process_start()
191 handles[i] = vec[i].process; in process_wait()
287 if (!TerminateProcess(p->process, 1)) in process_terminate()
295 if (!GetExitCodeProcess(p->process, &exitCode)) in process_reap()
302 CloseHandle(p->process); in process_cleanup()
H A Dtest-ipc-heavy-traffic-deadlock-bug.c29 uv_process_t* process,
135 uv_process_t process; in TEST_IMPL() local
137 spawn_helper(&pipe, &process, "ipc_helper_heavy_traffic_deadlock_bug"); in TEST_IMPL()
H A Dtest-stdio-over-pipes.c50 static void exit_cb(uv_process_t* process, in exit_cb() argument
57 uv_close((uv_handle_t*)process, close_cb); in exit_cb()
121 uv_process_t process; in test_stdio_over_pipes() local
142 r = uv_spawn(loop, &process, &options); in test_stdio_over_pipes()
H A Drunner-win.h37 HANDLE process; member
H A Drunner.c112 process_info_t* process) { in log_tap_result() argument
132 if (status == TEST_SKIP && process_output_size(process) > 0) { in log_tap_result()
133 process_read_last_line(process, reason, sizeof reason); in log_tap_result()
H A Dtest-ipc.c89 static void exit_cb(uv_process_t* process, in exit_cb() argument
96 uv_close((uv_handle_t*)process, NULL); in exit_cb()
281 uv_process_t* process, in spawn_helper() argument
317 r = uv_spawn(uv_default_loop(), process, &options); in spawn_helper()
418 uv_process_t process; in run_ipc_test() local
421 spawn_helper(&channel, &process, helper); in run_ipc_test()
H A Dtest-ipc-send-recv.c30 uv_process_t* process,
173 uv_process_t process; in run_test() local
188 spawn_helper(&ctx.channel, &process, "ipc_send_recv_helper"); in run_test()
/libuv/docs/src/guide/
H A Dprocesses.rst4 libuv offers considerable child process management, abstracting the platform
5 differences and allowing communication with the child process using streams or
10 (similar to using pipes in shells). A multi-process model with messages
51 ID of the child process.
65 It is **required** to close the process watcher after the process exits.
67 Changing process parameters
89 modifies the child process behaviour:
220 parent process, the child process can treat that stream as standard I/O. This
288 Arbitrary process IPC
384 master and the individual process.
[all …]
H A Dbasics.rst20 while there are still events to process:
57 **non-blocking** because the application process was free to do other tasks.
93 This program quits immediately because it has no events to process. A libuv
140 usually done by creating a **handle** to an I/O device, timer or process.
/libuv/src/win/
H A Dprocess.c805 uv_loop_t* loop = process->loop; in exit_wait_callback()
808 assert(process); in exit_wait_callback()
809 assert(!process->exit_cb_pending); in exit_wait_callback()
811 process->exit_cb_pending = 1; in exit_wait_callback()
891 uv_process_t* process, in uv_spawn() argument
904 uv__process_init(loop, process); in uv_spawn()
905 process->exit_cb = options->exit_cb; in uv_spawn()
1105 process->pid = info.dwProcessId; in uv_spawn()
1120 process->process_handle, exit_wait_callback, (void*)process, INFINITE, in uv_spawn()
1132 uv__handle_start(process); in uv_spawn()
[all …]
/libuv/
H A DMakefile.am79 src/win/process-stdio.c \
80 src/win/process.c \
110 src/unix/process.c \
241 test/test-process-priority.c \
242 test/test-process-title.c \
243 test/test-process-title-threadsafe.c \
H A DREADME.md261 a child process:
268 the same process:
276 When running the test from within the test driver process
280 When running the test from a child of the test driver process
342 after the process terminates unless the event loop is closed.
/libuv/docs/
H A DMakefile76 @echo "Build finished; now you can process the pickle files."
81 @echo "Build finished; now you can process the JSON files."

Completed in 41 milliseconds

12