Home
last modified time | relevance | path

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

1234

/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_trace_ptrace.c29 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument
31 if (0 > ptrace(PTRACE_ATTACH, pid, 0, 0)) { in fpm_trace_signal()
32 zlog(ZLOG_SYSERROR, "failed to ptrace(ATTACH) child %d", pid); in fpm_trace_signal()
39 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument
41 traced_pid = pid; in fpm_trace_ready()
46 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
48 if (0 > ptrace(PTRACE_DETACH, pid, (void *) 1, 0)) { in fpm_trace_close()
49 zlog(ZLOG_SYSERROR, "failed to ptrace(DETACH) child %d", pid); in fpm_trace_close()
H A Dfpm_trace_pread.c26 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument
28 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { in fpm_trace_signal()
29 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); in fpm_trace_signal()
36 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument
40 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); in fpm_trace_ready()
50 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
H A Dfpm_trace_mach.c47 int fpm_trace_signal(pid_t pid) /* {{{ */ in fpm_trace_signal() argument
49 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { in fpm_trace_signal()
50 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); in fpm_trace_signal()
57 int fpm_trace_ready(pid_t pid) /* {{{ */ in fpm_trace_ready() argument
61 kr = task_for_pid(mach_task_self(), pid, &target); in fpm_trace_ready()
75 int fpm_trace_close(pid_t pid) /* {{{ */ in fpm_trace_close() argument
H A Dfpm_php_trace.c46 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()
144 zlog(ZLOG_NOTICE, "about to trace %d", (int) child->pid); in fpm_php_trace()
153 if (0 > fpm_trace_ready(child->pid)) { in fpm_php_trace()
161 if (0 > fpm_trace_close(child->pid)) { in fpm_php_trace()
169 fpm_pctl_kill(child->pid, FPM_PCTL_CONT); in fpm_php_trace()
172 zlog(ZLOG_NOTICE, "finished trace of %d", (int) child->pid); in fpm_php_trace()
H A Dfpm_children.c122 static struct fpm_child_s *fpm_child_find(pid_t pid) /* {{{ */ in fpm_child_find() argument
130 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()
227 zlog(ZLOG_NOTICE, "child %d stopped for tracing", (int) pid); in fpm_children_bury()
363 pid_t pid; in fpm_children_make() local
400 pid = fork(); in fpm_children_make()
402 switch (pid) { in fpm_children_make()
417 child->pid = pid; in fpm_children_make()
[all …]
H A Dfpm_trace.h10 int fpm_trace_signal(pid_t pid);
11 int fpm_trace_ready(pid_t pid);
12 int fpm_trace_close(pid_t pid);
H A Dfpm.c32 .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-5.4/ext/pcntl/tests/
H A D001.phpt13 $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 D002.phpt13 $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 Dbug47566.phpt7 $pid = pcntl_fork();
8 if ($pid == -1) {
11 } elseif ($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_fork_basic.phpt16 $pid = pcntl_fork();
17 if ($pid > 0) {
19 var_dump($pid);
21 var_dump($pid);
H A Dpcntl_wait.phpt8 $pid = pcntl_fork();
9 if ($pid == 1) {
11 } else if ($pid) {
15 posix_kill($pid, SIGCONT);
H A Dpcntl_get_last_error.phpt10 $pid = pcntl_wait($status);
11 var_dump($pid);
/PHP-5.4/ext/posix/tests/
H A Dposix_kill_basic.phpt15 // 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 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_errno_variation2.phpt15 echo "*** Test by calling function with pid error ***\n";
17 $pid = 10000;
20 $pid += 1;
21 $result = shell_exec("ps -p " . $pid);
22 } while (strstr($pid, $result));
24 posix_kill($pid, SIGKILL);
29 *** Test by calling function with pid error ***
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-5.4/ext/pcntl/
H A Dtest-pcntl.php16 $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-5.4/ext/standard/tests/http/
H A Dserver.inc32 $pid = pcntl_fork();
33 if ($pid == -1) {
35 } else if ($pid) {
36 return $pid;
87 function http_server_kill($pid) {
88 posix_kill($pid, SIGTERM);
89 pcntl_waitpid($pid, $status);
/PHP-5.4/ext/standard/tests/general_functions/
H A Dproc_nice_basic.phpt16 $res = shell_exec('ps -p ' . $id .' -o "pid,nice"');
24 $pid = getmypid();
25 $niceBefore = getNice($pid);
27 $niceAfter = getNice($pid);
/PHP-5.4/ext/standard/
H A Dpageinfo.c137 int pid; in PHP_FUNCTION() local
143 pid = getpid(); in PHP_FUNCTION()
144 if (pid < 0) { in PHP_FUNCTION()
147 RETURN_LONG((long) pid); in PHP_FUNCTION()
/PHP-5.4/ext/com_dotnet/
H A Dcom_wrapper.c219 /* [out] */ DISPID *pid) in disp_getdispid() argument
234 *pid = Z_LVAL_PP(tmp); in disp_getdispid()
405 /* [out] */ DISPID *pid) in disp_getnextdispid() argument
414 *pid = next; in disp_getnextdispid()
458 ulong pid; in generate_dispids() local
472 &namelen, &pid, 0, &pos))) { in generate_dispids()
493 ZVAL_LONG(tmp, pid); in generate_dispids()
503 &name, &namelen, &pid, 0, &pos))) { in generate_dispids()
525 ZVAL_LONG(tmp, pid); in generate_dispids()
590 ulong pid; in php_com_wrapper_export_as_sink() local
[all …]
/PHP-5.4/ext/pgsql/tests/
H A D20pg_get_pid.phpt12 $pid = pg_get_pid($db);
14 is_integer($pid) ? print 'OK' : print 'NG';

Completed in 34 milliseconds

1234