Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 125) sorted by relevance

12345

/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_trace_ptrace.c27 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument
29 if (0 > ptrace(PTRACE_ATTACH, pid, 0, 0)) { in fpm_trace_signal()
30 zlog(ZLOG_SYSERROR, "failed to ptrace(ATTACH) child %d", pid); in fpm_trace_signal()
37 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument
39 traced_pid = pid; in fpm_trace_ready()
44 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
46 if (0 > ptrace(PTRACE_DETACH, pid, (void *) 1, 0)) { in fpm_trace_close()
47 zlog(ZLOG_SYSERROR, "failed to ptrace(DETACH) child %d", pid); in fpm_trace_close()
H A Dfpm_trace_pread.c24 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument
26 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { in fpm_trace_signal()
27 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); in fpm_trace_signal()
34 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument
38 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); in fpm_trace_ready()
48 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
H A Dfpm_trace_mach.c45 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument
47 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { in fpm_trace_signal()
48 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); in fpm_trace_signal()
55 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument
59 kr = task_for_pid(mach_task_self(), pid, &target); in fpm_trace_ready()
73 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
H A Dfpm_trace.h8 int fpm_trace_signal(pid_t pid);
9 int fpm_trace_ready(pid_t pid);
10 int fpm_trace_close(pid_t pid);
H A Dfpm_children.c124 static struct fpm_child_s *fpm_child_find(pid_t pid) /* {{{ */ in fpm_child_find() argument
132 if (child->pid == pid) { in fpm_child_find()
183 pid_t pid; in fpm_children_bury() local
186 while ( (pid = waitpid(-1, &status, WNOHANG | WUNTRACED)) > 0) { in fpm_children_bury()
191 child = fpm_child_find(pid); in fpm_children_bury()
234 zlog(ZLOG_NOTICE, "child %d stopped for tracing", (int) pid); in fpm_children_bury()
370 pid_t pid; in fpm_children_make() local
412 pid = fork(); in fpm_children_make()
414 switch (pid) { in fpm_children_make()
433 child->pid = pid; in fpm_children_make()
[all …]
H A Dfpm_php_trace.c44 pid_t pid = child->pid; in fpm_php_trace_dump() local
56 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); in fpm_php_trace_dump()
200 zlog(ZLOG_NOTICE, "about to trace %d", (int) child->pid); in fpm_php_trace()
209 if (0 > fpm_trace_ready(child->pid)) { in fpm_php_trace()
217 if (0 > fpm_trace_close(child->pid)) { in fpm_php_trace()
225 fpm_pctl_kill(child->pid, FPM_PCTL_CONT); in fpm_php_trace()
228 zlog(ZLOG_NOTICE, "finished trace of %d", (int) child->pid); in fpm_php_trace()
H A Dfpm.c30 .pid = NULL,
44 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_a… in fpm_init() argument
52 fpm_globals.pid = pid; in fpm_init()
/PHP-7.4/ext/pcntl/tests/
H A D001.phpt16 $pid=pcntl_fork();
17 if ($pid==0) {
22 pcntl_waitpid($pid, $status, $options);
30 $pid=pcntl_fork();
32 if ($pid==0) {
37 posix_kill($pid, SIGTERM);
38 pcntl_waitpid($pid, $status, $options);
52 $pid=pcntl_fork();
54 if ($pid==0) {
59 posix_kill($pid, SIGSTOP);
[all …]
H A Dpcntl_waitpid_rusage1.phpt8 $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 Dbug47566.phpt7 $pid = pcntl_fork();
8 if ($pid == -1) {
11 } elseif ($pid) {
H A D002.phpt14 $pid = pcntl_fork();
15 if ($pid == -1) {
17 } else if ($pid) {
36 posix_kill($pid, SIGTERM);
46 echo "signo === pid\n";
47 var_dump($siginfo['pid'] === $pid);
48 pcntl_waitpid($pid, $status);
92 signo === pid
H A Dpcntl_fork_basic.phpt16 $pid = pcntl_fork();
17 if ($pid > 0) {
19 var_dump($pid);
21 var_dump($pid);
H A Dpcntl_fork_variation.phpt16 $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 Dpcntl_wait_rusage1.phpt8 $pid = pcntl_fork();
9 if ($pid == -1) {
11 } else if ($pid) {
17 posix_kill($pid, SIGCONT);
H A Dpcntl_get_last_error.phpt10 $pid = pcntl_wait($status);
11 var_dump($pid);
/PHP-7.4/ext/posix/tests/
H A Dposix_kill_error.phpt9 /* 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 Dposix_getsid.phpt4 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 Dposix_getpgid_error.phpt23 $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.4/ext/pdo_pgsql/tests/
H A Dbug68199.phpt23 $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 Dgetnotify.phpt17 $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.4/ext/standard/tests/general_functions/
H A Dproc_nice_basic.phpt12 exec('ps -p 1 -o "pid,nice"', $output, $exit_code);
21 $res = shell_exec('ps -p ' . $id .' -o "pid,nice"');
29 $pid = getmypid();
30 $niceBefore = getNice($pid);
32 $niceAfter = getNice($pid);
/PHP-7.4/ext/opcache/
H A Dconfig.m435 pid_t pid;
72 pid = fork();
73 if (pid < 0) {
75 } else if (pid == 0) {
113 pid_t pid;
124 pid = fork();
125 if (pid < 0) {
127 } else if (pid == 0) {
165 pid_t pid;
194 pid = fork();
[all …]
/PHP-7.4/ext/standard/tests/http/
H A Dserver.inc25 $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);
/PHP-7.4/ext/pcre/tests/
H A Dbug78272.phpt11 $pid = pcntl_fork();
12 if ($pid === 0) {
19 pcntl_waitpid($pid, $status);
/PHP-7.4/ext/standard/
H A Dpageinfo.c135 zend_long pid; in PHP_FUNCTION() local
141 pid = getpid(); in PHP_FUNCTION()
142 if (pid < 0) { in PHP_FUNCTION()
145 RETURN_LONG(pid); in PHP_FUNCTION()

Completed in 66 milliseconds

12345