Lines Matching refs:child_pid
160 if (lsp->child_pid < 1) in lws_spawn_reap()
167 n = wait4(lsp->child_pid, &status, WNOHANG, &rusa); in lws_spawn_reap()
172 n = waitid(P_PID, (id_t)lsp->child_pid, &lsp->si, WEXITED | WNOHANG | WNOWAIT); in lws_spawn_reap()
175 lwsl_info("%s: child %d still running\n", __func__, lsp->child_pid); in lws_spawn_reap()
232 n = wait4(lsp->child_pid, &status, WNOHANG, &rusa); in lws_spawn_reap()
240 n = waitid(P_PID, (id_t)lsp->child_pid, &temp.si, WEXITED | WNOHANG); in lws_spawn_reap()
246 lsp->child_pid = -1; in lws_spawn_reap()
268 if (lsp->child_pid <= 0) in lws_spawn_piped_kill_child_process()
278 n = kill(-lsp->child_pid, SIGTERM); in lws_spawn_piped_kill_child_process()
280 lsp->child_pid, n, errno); in lws_spawn_piped_kill_child_process()
288 n = kill(lsp->child_pid, SIGTERM); in lws_spawn_piped_kill_child_process()
290 n = kill(lsp->child_pid, SIGPIPE); in lws_spawn_piped_kill_child_process()
292 n = kill(lsp->child_pid, SIGKILL); in lws_spawn_piped_kill_child_process()
297 lsp->child_pid, errno); in lws_spawn_piped_kill_child_process()
306 n = waitpid(-lsp->child_pid, &status, WNOHANG); in lws_spawn_piped_kill_child_process()
310 n = waitpid(lsp->child_pid, &status, WNOHANG); in lws_spawn_piped_kill_child_process()
447 lsp->child_pid = fork(); in lws_spawn_piped()
449 lsp->child_pid = vfork(); in lws_spawn_piped()
451 if (lsp->child_pid < 0) { in lws_spawn_piped()
457 if (!lsp->child_pid) in lws_spawn_piped()
470 if (lsp->child_pid) { in lws_spawn_piped()
485 lsp->child_pid); in lws_spawn_piped()