/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_trace_ptrace.c | 28 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument 30 if (0 > ptrace(PTRACE_ATTACH, pid, 0, 0)) { in fpm_trace_signal() 31 zlog(ZLOG_SYSERROR, "failed to ptrace(ATTACH) child %d", pid); in fpm_trace_signal() 38 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument 40 traced_pid = pid; in fpm_trace_ready() 45 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument 47 if (0 > ptrace(PTRACE_DETACH, pid, (void *) 1, 0)) { in fpm_trace_close() 48 zlog(ZLOG_SYSERROR, "failed to ptrace(DETACH) child %d", pid); in fpm_trace_close()
|
H A D | fpm_trace_pread.c | 25 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument 27 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { in fpm_trace_signal() 28 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); in fpm_trace_signal() 35 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument 39 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); in fpm_trace_ready() 49 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
|
H A D | fpm_trace_mach.c | 46 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument 48 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { in fpm_trace_signal() 49 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); in fpm_trace_signal() 56 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument 60 kr = task_for_pid(mach_task_self(), pid, &target); in fpm_trace_ready() 74 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
|
H A D | fpm_trace.h | 9 int fpm_trace_signal(pid_t pid); 10 int fpm_trace_ready(pid_t pid); 11 int fpm_trace_close(pid_t pid);
|
H A D | fpm_children.c | 121 static struct fpm_child_s *fpm_child_find(pid_t pid) /* {{{ */ in fpm_child_find() argument 129 if (child->pid == pid) { in fpm_child_find() 180 pid_t pid; in fpm_children_bury() local 183 while ( (pid = waitpid(-1, &status, WNOHANG | WUNTRACED)) > 0) { in fpm_children_bury() 188 child = fpm_child_find(pid); in fpm_children_bury() 231 zlog(ZLOG_NOTICE, "child %d stopped for tracing", (int) pid); in fpm_children_bury() 367 pid_t pid; in fpm_children_make() local 404 pid = fork(); in fpm_children_make() 406 switch (pid) { in fpm_children_make() 421 child->pid = pid; in fpm_children_make() [all …]
|
H A D | fpm_php_trace.c | 45 pid_t pid = child->pid; in fpm_php_trace_dump() local 57 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); in fpm_php_trace_dump() 201 zlog(ZLOG_NOTICE, "about to trace %d", (int) child->pid); in fpm_php_trace() 210 if (0 > fpm_trace_ready(child->pid)) { in fpm_php_trace() 218 if (0 > fpm_trace_close(child->pid)) { in fpm_php_trace() 226 fpm_pctl_kill(child->pid, FPM_PCTL_CONT); in fpm_php_trace() 229 zlog(ZLOG_NOTICE, "finished trace of %d", (int) child->pid); in fpm_php_trace()
|
H A D | fpm.c | 31 .pid = NULL, 45 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a… in fpm_init() argument 53 fpm_globals.pid = pid; in fpm_init()
|
/PHP-7.2/ext/pcntl/tests/ |
H A D | 001.phpt | 13 $pid=pcntl_fork(); 14 if ($pid==0) { 19 pcntl_waitpid($pid, $status, $options); 27 $pid=pcntl_fork(); 29 if ($pid==0) { 34 posix_kill($pid, SIGTERM); 35 pcntl_waitpid($pid, $status, $options); 49 $pid=pcntl_fork(); 51 if ($pid==0) { 56 posix_kill($pid, SIGSTOP); [all …]
|
H A D | pcntl_waitpid_rusage1.phpt | 8 $pid = pcntl_fork(); 9 if ($pid == -1) { 11 } else if ($pid) { 13 var_dump(pcntl_waitpid($pid, $status, WUNTRACED, $rusage)); 17 posix_kill($pid, SIGCONT); 20 pcntl_waitpid($pid, $status, WUNTRACED, $rusage); 25 pcntl_waitpid($pid, $status, 0, $rusage); 30 pcntl_waitpid($pid, $status, 0, $rusage);
|
H A D | 002.phpt | 13 $pid = pcntl_fork(); 14 if ($pid == -1) { 16 } else if ($pid) { 35 posix_kill($pid, SIGTERM); 45 echo "signo === pid\n"; 46 var_dump($siginfo['pid'] === $pid); 47 pcntl_waitpid($pid, $status); 91 signo === pid
|
H A D | bug47566.phpt | 7 $pid = pcntl_fork(); 8 if ($pid == -1) { 11 } elseif ($pid) {
|
H A D | pcntl_fork_variation.phpt | 16 $pid = pcntl_fork(); 18 if ($pid > 0) { 20 echo "father is $pid\n"; 24 echo "father ($pid) doesn't know its grandsons\n"; 29 echo "son ($pid)\n";
|
H A D | pcntl_fork_basic.phpt | 16 $pid = pcntl_fork(); 17 if ($pid > 0) { 19 var_dump($pid); 21 var_dump($pid);
|
H A D | pcntl_wait_rusage1.phpt | 8 $pid = pcntl_fork(); 9 if ($pid == -1) { 11 } else if ($pid) { 17 posix_kill($pid, SIGCONT);
|
/PHP-7.2/ext/posix/tests/ |
H A D | posix_kill_basic.phpt | 15 // for now start at a low pid and find first pid which does not exist. 16 $pid = 999; 18 $pid += 1; 19 $result = shell_exec("ps -p " . $pid); 20 } while (stripos($result, (string)$pid) != FALSE); 22 echo "Kill pid=" . $pid . "\n"; 23 var_dump(posix_kill($pid,$SIGKILL)); 34 Kill pid=%d
|
H A D | posix_kill_error.phpt | 9 /* Prototype : proto bool posix_kill(int pid, int sig) 20 $pid = posix_getpid(); 23 var_dump( posix_kill($pid, $sig, $extra_arg) ); 26 $pid = posix_getpid(); 27 var_dump( posix_kill($pid) ); 30 $pid = posix_getpid(); 32 var_dump( posix_kill($pid, 999) ); 34 echo "\n-- Testing posix_kill() function with negative pid --\n"; 35 $pid = -999; 37 var_dump( posix_kill($pid, 999) ); [all …]
|
H A D | posix_getsid.phpt | 4 Get the current session id of a process pid (POSIX.1, 4.2.1) 17 $pid = posix_getpid(); 18 echo "\n-- Testing posix_getsid() function with current process pid --\n"; 19 var_dump( is_long(posix_getsid($pid)) ); 26 -- Testing posix_getsid() function with current process pid --
|
H A D | posix_getpgid_error.phpt | 23 $pid = 10; 25 var_dump( posix_getpgid($pid, $extra_arg) ); 27 echo "\n-- Testing posix_getpgid() with negative pid --\n"; 28 $pid = -99; 29 var_dump( posix_getpgid($pid) ); 46 -- Testing posix_getpgid() with negative pid --
|
/PHP-7.2/ext/pcntl/ |
H A D | test-pcntl.php | 16 $pid=pcntl_fork(); variable 17 if ($pid==0) { 33 posix_kill($pid,SIGALRM); 36 posix_kill($pid,SIGUSR1); 39 pcntl_waitpid($pid, &$status, $options);
|
/PHP-7.2/ext/pdo_pgsql/tests/ |
H A D | bug68199.phpt | 23 $pid = $db->pgsqlGetPid(); 24 var_dump($pid > 0); 39 var_dump($notify[1] == $pid); 48 var_dump($notify['pid'] == $pid); 56 var_dump($notify[1] == $pid); 64 var_dump($notify['pid'] == $pid); 72 var_dump($notify['pid'] == $pid); 75 var_dump($notify[1] == $pid);
|
H A D | getnotify.phpt | 17 $pid = $db->pgsqlGetPid(); 18 var_dump($pid > 0); 33 var_dump($notify[1] == $pid); 41 var_dump($notify['pid'] == $pid); 48 var_dump($notify[1] == $pid); 55 var_dump($notify['pid'] == $pid); 62 var_dump($notify['pid'] == $pid); 64 var_dump($notify[1] == $pid);
|
/PHP-7.2/ext/opcache/ |
H A D | config.m4 | 41 pid_t pid; 78 pid = fork(); 79 if (pid < 0) { 119 pid_t pid; 130 pid = fork(); 131 if (pid < 0) { 168 pid_t pid; 185 pid = fork(); 225 pid_t pid; 254 pid = fork(); [all …]
|
/PHP-7.2/ext/zip/lib/ |
H A D | mkstemp.c | 70 pid_t pid; in _zip_mkstemp() 78 pid = getpid(); in _zip_mkstemp() 95 *trv = (pid % 10) + '0'; in _zip_mkstemp() 96 pid /= 10; in _zip_mkstemp()
|
/PHP-7.2/ext/standard/tests/general_functions/ |
H A D | proc_nice_basic.phpt | 17 $res = shell_exec('ps -p ' . $id .' -o "pid,nice"'); 25 $pid = getmypid(); 26 $niceBefore = getNice($pid); 28 $niceAfter = getNice($pid);
|
/PHP-7.2/ext/standard/tests/http/ |
H A D | server.inc | 25 $pid = pcntl_fork(); 26 if ($pid == -1) { 28 } else if ($pid) { 29 return $pid; 113 function http_server_kill($pid) { 114 posix_kill($pid, SIGTERM); 115 pcntl_waitpid($pid, $status);
|