/libuv/src/unix/ |
H A D | process.c | 107 pid_t pid; in uv__wait_children() local 131 pid = waitpid(process->pid, &status, options); in uv__wait_children() 139 if (pid == -1) { in uv__wait_children() 147 assert(pid == process->pid); in uv__wait_children() 769 pid_t* pid, in uv__spawn_and_init_child_posix_spawn() argument 828 *pid = fork(); in uv__spawn_and_init_child_fork() 830 if (*pid == 0) { in uv__spawn_and_init_child_fork() 839 if (*pid == -1) in uv__spawn_and_init_child_fork() 852 pid_t* pid) { in uv__spawn_and_init_child() argument 963 pid_t pid; in uv_spawn() [all …]
|
H A D | netbsd.c | 142 pid_t pid; in uv_resident_set_memory() local 148 pid = getpid(); in uv_resident_set_memory() 154 kinfo = kvm_getproc2(kd, KERN_PROC_PID, pid, max_size, &nprocs); in uv_resident_set_memory()
|
H A D | core.c | 1544 int uv_os_getpriority(uv_pid_t pid, int* priority) { in uv_os_getpriority() argument 1551 r = getpriority(PRIO_PROCESS, (int) pid); in uv_os_getpriority() 1561 int uv_os_setpriority(uv_pid_t pid, int priority) { in uv_os_setpriority() argument 1565 if (setpriority(PRIO_PROCESS, (int) pid, priority) != 0) in uv_os_setpriority() 1582 pid_t pid = gettid(); in uv_thread_getpriority() local 1595 r = getpriority(PRIO_PROCESS, pid); in uv_thread_getpriority() 1615 pid_t pid = gettid(); in set_nice_for_calling_thread() local 1617 r = setpriority(PRIO_PROCESS, pid, nice); in set_nice_for_calling_thread()
|
H A D | kqueue.c | 343 if (process->pid == fd) { in uv__io_poll()
|
H A D | os390.c | 158 int pid; in uv_exepath() local
|
/libuv/test/ |
H A D | test-pipe-close-stdout-read-stdin.c | 57 int pid; in TEST_IMPL() local 67 pid = -1; in TEST_IMPL() 69 pid = fork(); in TEST_IMPL() 72 if (pid == 0) { in TEST_IMPL() 110 waitpid(pid, &status, 0); in TEST_IMPL()
|
H A D | runner-unix.c | 94 pid_t pid; in process_start() local 139 pid = -1; in process_start() 141 pid = fork(); in process_start() 144 if (pid < 0) { in process_start() 149 if (pid == 0) { in process_start() 163 p->pid = pid; in process_start() 212 r = waitpid(p->pid, &p->status, 0); in dowait() 337 kill(p->pid, SIGTERM); in process_wait() 428 return kill(p->pid, SIGTERM); in process_terminate()
|
H A D | test-platform-output.c | 32 uv_pid_t pid; in TEST_IMPL() local 224 pid = uv_os_getpid(); in TEST_IMPL() 225 ASSERT_GT(pid, 0); in TEST_IMPL() 226 printf("uv_os_getpid: %d\n", (int) pid); in TEST_IMPL()
|
H A D | test-signal.c | 30 uv_pid_t pid; in TEST_IMPL() local 32 pid = uv_os_getpid(); in TEST_IMPL() 34 ASSERT_EQ(uv_kill(pid, -1), UV_EINVAL); in TEST_IMPL() 37 ASSERT_EQ(uv_kill(pid, NSIG), UV_EINVAL); in TEST_IMPL() 39 ASSERT_EQ(uv_kill(pid, 4096), UV_EINVAL); in TEST_IMPL()
|
H A D | runner-unix.h | 30 pid_t pid; member
|
H A D | test-spawn.c | 113 err = uv_kill(process->pid, 0); in kill_cb() 220 err = waitpid(process.pid, &status, 0); 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() 1076 r = uv_kill(process.pid, 0); in TEST_IMPL() 1080 r = uv_kill(process.pid, SIGTERM); in TEST_IMPL()
|
H A D | test-fs.c | 3740 pthread_t pid; member 3773 pthread_kill(ctx->pid, SIGUSR1); in thread_main() 3812 ctx.pid = pthread_self(); in test_fs_partial()
|
/libuv/src/win/ |
H A D | process.c | 133 handle->pid = 0; in uv__process_init() 1105 process->pid = info.dwProcessId; in uv_spawn() 1172 DWORD pid, ret; in uv__kill() local 1179 pid = GetProcessId(process_handle); in uv__kill() 1231 pid); in uv__kill() 1265 pid, in uv__kill() 1372 int uv_kill(int pid, int signum) { in uv_kill() argument 1376 if (pid == 0) { in uv_kill() 1381 pid); in uv_kill()
|
H A D | util.c | 1381 static int uv__get_handle(uv_pid_t pid, int access, HANDLE* handle) { in uv__get_handle() argument 1384 if (pid == 0) in uv__get_handle() 1387 *handle = OpenProcess(access, FALSE, pid); in uv__get_handle() 1402 int uv_os_getpriority(uv_pid_t pid, int* priority) { in uv_os_getpriority() argument 1409 r = uv__get_handle(pid, PROCESS_QUERY_LIMITED_INFORMATION, &handle); in uv_os_getpriority() 1441 int uv_os_setpriority(uv_pid_t pid, int priority) { in uv_os_setpriority() argument 1462 r = uv__get_handle(pid, PROCESS_SET_INFORMATION, &handle); in uv_os_setpriority()
|
H A D | internal.h | 99 int pid,
|
H A D | pipe.c | 1730 DWORD* pid = &handle->pipe.conn.ipc_remote_pid; in uv__pipe_get_ipc_remote_pid() local 1735 if (*pid == 0) { in uv__pipe_get_ipc_remote_pid() 1736 GetNamedPipeClientProcessId(handle->handle, pid); in uv__pipe_get_ipc_remote_pid() 1737 if (*pid == GetCurrentProcessId()) { in uv__pipe_get_ipc_remote_pid() 1738 GetNamedPipeServerProcessId(handle->handle, pid); in uv__pipe_get_ipc_remote_pid() 1742 return *pid; in uv__pipe_get_ipc_remote_pid()
|
/libuv/docs/code/detach/ |
H A D | main.c | 27 fprintf(stderr, "Launched sleep with PID %d\n", child_req.pid); in main()
|
/libuv/docs/code/spawn/ |
H A D | main.c | 32 fprintf(stderr, "Launched process with ID %d\n", child_req.pid); in main()
|
/libuv/src/ |
H A D | uv-data-getter-setters.c | 90 return proc->pid; in uv_process_get_pid()
|
/libuv/docs/code/multi-echo-server/ |
H A D | main.c | 93 fprintf(stderr, "Started worker %d\n", worker->req.pid); in setup_workers()
|
/libuv/docs/src/ |
H A D | process.rst | 173 .. c:member:: int uv_process_t.pid 280 .. c:function:: int uv_kill(int pid, int signum) 287 Returns `handle->pid`.
|
H A D | misc.rst | 783 .. c:function:: int uv_os_getpriority(uv_pid_t pid, int* priority) 785 Retrieves the scheduling priority of the process specified by `pid`. The 795 .. c:function:: int uv_os_setpriority(uv_pid_t pid, int priority) 797 Sets the scheduling priority of the process specified by `pid`. The
|
/libuv/include/ |
H A D | uv.h | 1154 int pid; member 1162 UV_EXTERN int uv_kill(int pid, int signum); 1320 UV_EXTERN int uv_os_getpriority(uv_pid_t pid, int* priority); 1321 UV_EXTERN int uv_os_setpriority(uv_pid_t pid, int priority);
|
/libuv/docs/src/guide/ |
H A D | processes.rst | 50 After the call to ``uv_spawn``, ``uv_process_t.pid`` will contain the process 127 uv_err_t uv_kill(int pid, int signum); 131 the pid. In this case, **remember to call** ``uv_close`` on the watcher _after_
|
/libuv/ |
H A D | ChangeLog | 577 * win,pipe: improve method of obtaining pid for ipc (number201724)
|