/dports/devel/rlwrap/rlwrap-0.45.2/src/ |
H A D | signals.c | 193 DPRINTF2(DEBUG_SIGNALS, "got %s, sending it to pgid %d", signal_name(signo), command_pid); in handle_sigTSTP() 196 if (command_pid && (error = kill(-command_pid, SIGTSTP))) { in handle_sigTSTP() 220 if (command_pid && (error = kill(-command_pid, SIGCONT))) { in handle_sigTSTP() 278 if (!command_pid) in pass_on_signal() 282 ret = kill( -command_pid, signo); in pass_on_signal() 283 DPRINTF3(DEBUG_SIGNALS, "kill(%d,%s) = %d", -command_pid, signal_name(signo), ret); in pass_on_signal() 374 if(command_pid && waitpid(command_pid, &commands_exit_status, WNOHANG)) { in child_died() 375 …DPRINTF2(DEBUG_SIGNALS, "child (pid %d) has died, exit status: %x", command_pid, commands_exit_sta… in child_died() 377 command_pid = 0; /* thus we know that there is no child anymore to pass signals to */ in child_died()
|
H A D | utils.c | 321 …e, MAXPATHLEN, "%s/%s_%s_%d_%d%s", tmpdir, program_name, command_name, command_pid, tmpfile_counte… in open_unique_tempfile() 545 proc_pid_cwd = add3strings(PROC_MOUNTPOINT, "/", add2strings(as_string(command_pid), "/cwd")); in get_new_slave_cwd() 560 if (proc_pidinfo(command_pid, PROC_PIDVNODEPATHINFO, 0, &vpi, sizeof(vpi)) <= 0) in get_new_slave_cwd() 561 DPRINTF2(DEBUG_COMPLETION, "proc_pidinfo(%d, .. failed: %s", command_pid, strerror(errno)); in get_new_slave_cwd() 568 struct kinfo_proc *kip = procstat_getprocs(procstat, KERN_PROC_PID, command_pid, &count); in get_new_slave_cwd() 607 if(command_pid > 0 && get_new_slave_cwd(&slaves_working_directory)) { in change_working_directory() 883 void mirror_args(pid_t command_pid) { in mirror_args() argument 888 if (!stored_cmdline_filename || !command_pid) /* uninitialized, unborn or dead command */ in mirror_args() 891 snprintf2(stored_cmdline_filename, MAXPATHLEN , "%s/%d/cmdline", PROC_MOUNTPOINT, command_pid); in mirror_args()
|
H A D | main.c | 64 pid_t command_pid = 0; /* pid of child (client), or 0 before child is born */ variable 350 assert(command_is_dead || kill(command_pid,0) == 0); in main_loop() 410 mirror_args(command_pid); in main_loop() 456 mirror_args(command_pid); in main_loop() 1069 command_pid, commands_exit_status, filter_pid, filters_exit_status); in cleanup_rlwrap_and_exit()
|
H A D | filter.c | 100 …assert(!command_pid || signal_handlers_were_installed); /* if there is a command, then signal han… in spawn_filter() 123 mysetenv("RLWRAP_COMMAND_PID", as_string(command_pid)); in spawn_filter()
|
H A D | pty.c | 84 command_pid = pid; /* the SIGCHLD signal handler needs this global variable */ in my_pty_fork() 359 snprintf2(command_wchan, MAXPATHLEN , "%s/%d/wchan", PROC_MOUNTPOINT, command_pid); in dont_wrap_command_waits()
|
H A D | rlwrap.h | 233 extern pid_t command_pid; 357 void mirror_args(pid_t command_pid);
|
H A D | readline.c | 268 kill(-command_pid, SIGWINCH); in line_handler()
|
/dports/graphics/fractgen/fractgen-2.1.11/ci/ |
H A D | monitor | 66 command_pid="${!}" 67 wait_for_timeout "${command_pid}" "${timeout}" "${cmd[@]}" & 73 wait "${command_pid}" 2>/dev/null
|
/dports/converters/bibtexconv/bibtexconv-1.2.0/ci/ |
H A D | monitor | 66 command_pid="${!}" 67 wait_for_timeout "${command_pid}" "${timeout}" "${cmd[@]}" & 73 wait "${command_pid}" 2>/dev/null
|
/dports/net/subnetcalc/subnetcalc-2.4.18/ci/ |
H A D | monitor | 66 command_pid="${!}" 67 wait_for_timeout "${command_pid}" "${timeout}" "${cmd[@]}" & 73 wait "${command_pid}" 2>/dev/null
|
/dports/benchmarks/hipercontracer/hipercontracer-1.6.0/ci/ |
H A D | monitor | 66 command_pid="${!}" 67 wait_for_timeout "${command_pid}" "${timeout}" "${cmd[@]}" & 73 wait "${command_pid}" 2>/dev/null
|
/dports/graphics/gimageview/gimageview-0.2.27/src/ |
H A D | fr-process.c | 118 fr_proc->command_pid = 0; in fr_process_init() 373 fr_proc->command_pid = pid; in start_current_command() 393 pid = waitpid (fr_proc->command_pid, &status, WNOHANG); in check_child() 394 if (pid != fr_proc->command_pid) in check_child() 413 fr_proc->command_pid = 0; in check_child() 497 kill (fr_proc->command_pid, SIGKILL); in fr_process_stop() 498 waitpid (fr_proc->command_pid, NULL, WUNTRACED); in fr_process_stop() 499 fr_proc->command_pid = 0; in fr_process_stop()
|
H A D | fr-process.h | 63 pid_t command_pid; member
|
/dports/archivers/engrampa/engrampa-1.26.0/src/ |
H A D | fr-process.c | 213 GPid command_pid; member 311 process->priv->command_pid = 0; in fr_process_init() 780 &process->priv->command_pid, in start_current_command() 884 if (pid != process->priv->command_pid) { in check_child() 914 process->priv->command_pid = 0; in check_child() 1065 if (process->priv->command_pid > 0) in fr_close_suspend_process() 1067 ret = killpg (process->priv->command_pid,SIGTERM); in fr_close_suspend_process() 1088 if (process->priv->command_pid > 0) in fr_switch_process_state() 1095 if (process->priv->command_pid > 0) in fr_switch_process_state() 1122 killpg (process->priv->command_pid, SIGTERM); in fr_process_stop_priv() [all …]
|
/dports/sysutils/slurm-wlm/slurm-20.02.7/src/salloc/ |
H A D | salloc.c | 87 pid_t command_pid = -1; variable 600 command_pid = _fork_command(command_argv); 608 if (command_pid > 0) { 609 setpgid(command_pid, command_pid); 611 tcsetpgrp(STDIN_FILENO, command_pid); 1073 if (command_pid > 0) in _forward_signal() 1074 killpg(command_pid, signo); in _forward_signal() 1118 if ((command_pid > -1) && in _job_complete_handler() 1119 (waitpid(command_pid, NULL, WNOHANG) == 0)) { in _job_complete_handler() 1131 if (tpgid != command_pid && tpgid != getpgrp()) in _job_complete_handler() [all …]
|
H A D | salloc.h | 48 extern pid_t command_pid;
|
/dports/archivers/lxqt-archiver/lxqt-archiver-0.5.0/src/core/ |
H A D | fr-process.c | 214 GPid command_pid; member 310 process->priv->command_pid = 0; in fr_process_init() 754 &process->priv->command_pid, in start_current_command() 855 pid = waitpid (process->priv->command_pid, &status, WNOHANG); in check_child() 856 if (pid != process->priv->command_pid) { in check_child() 886 process->priv->command_pid = 0; in check_child() 1049 else if (process->term_on_stop && (process->priv->command_pid > 0)) in fr_process_stop_priv() 1050 killpg (process->priv->command_pid, SIGTERM); in fr_process_stop_priv() 1058 process->priv->command_pid = 0; in fr_process_stop_priv()
|
/dports/archivers/file-roller/file-roller-3.40.0/src/ |
H A D | fr-process.c | 251 GPid command_pid; member 320 process->priv->command_pid = 0; in fr_process_init() 698 else if (process->priv->command_pid > 0) in execute_cancelled_cb() 699 killpg (process->priv->command_pid, SIGTERM); in execute_cancelled_cb() 707 process->priv->command_pid = 0; in execute_cancelled_cb() 804 pid = waitpid (process->priv->command_pid, &status, WNOHANG); in check_child() 805 if (pid != process->priv->command_pid) { in check_child() 842 process->priv->command_pid = 0; in check_child() 994 &process->priv->command_pid, in execute_current_command()
|
/dports/devel/cvs-devel/cvs-1.12.13/src/ |
H A D | server.c | 680 static pid_t command_pid; variable 687 if (command_pid > 0) in outbuf_memory_error() 3566 command_pid = -1; in do_cvs_command() 3664 if (command_pid < 0) in do_cvs_command() 3670 if (command_pid == 0) in do_cvs_command() 4120 while (command_pid > 0) in do_cvs_command() 4163 command_pid = -1; in do_cvs_command() 4191 if (command_pid > 0) in do_cvs_command() 4201 command_pid = -1; in do_cvs_command() 6036 if (r == command_pid) in wait_sig() [all …]
|
/dports/www/uwsgi/uwsgi-2.0.20/plugins/pty/ |
H A D | pty.c | 35 pid_t command_pid; member 254 upty.command_pid = uwsgi_run_command(upty.command, NULL, -1); in uwsgi_pty_init()
|
/dports/deskutils/gnome-search-tool/gnome-search-tool-3.6.0/src/ |
H A D | gsearchtool-callbacks.c | 83 pgid = getpgid (command_details->command_pid); in quit_application() 86 kill (-(getpgid (command_details->command_pid)), SIGKILL); in quit_application() 89 kill (command_details->command_pid, SIGKILL); in quit_application() 92 kill (command_details->command_pid, SIGKILL); in quit_application() 166 pgid = getpgid (gsearch->command_details->command_pid); in click_stop_cb() 169 kill (-(getpgid (gsearch->command_details->command_pid)), SIGKILL); in click_stop_cb() 172 kill (gsearch->command_details->command_pid, SIGKILL); in click_stop_cb() 175 kill (gsearch->command_details->command_pid, SIGKILL); in click_stop_cb()
|
H A D | gsearchtool.h | 155 pid_t command_pid; member
|
/dports/deskutils/mate-utils/mate-utils-1.26.0/gsearchtool/src/ |
H A D | gsearchtool-callbacks.c | 77 pgid = getpgid (command_details->command_pid); in quit_application() 80 kill (-(getpgid (command_details->command_pid)), SIGKILL); in quit_application() 83 kill (command_details->command_pid, SIGKILL); in quit_application() 86 kill (command_details->command_pid, SIGKILL); in quit_application() 160 pgid = getpgid (gsearch->command_details->command_pid); in click_stop_cb() 163 kill (-(getpgid (gsearch->command_details->command_pid)), SIGKILL); in click_stop_cb() 166 kill (gsearch->command_details->command_pid, SIGKILL); in click_stop_cb() 169 kill (gsearch->command_details->command_pid, SIGKILL); in click_stop_cb()
|
H A D | gsearchtool.h | 160 pid_t command_pid; member
|
/dports/devel/rlwrap/rlwrap-0.45.2/filters/ |
H A D | RlwrapFilter.pm | 366 my $command_pid = $ENV{RLWRAP_COMMAND_PID}; 367 my $pwd = "/proc/$command_pid/cwd";
|