| /PHP_5_4/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);
|
| H A D | pcntl.c | 57 ZEND_ARG_INFO(0, pid) 127 ZEND_ARG_INFO(0, pid) 135 ZEND_ARG_INFO(0, pid) 568 /* {{{ proto int pcntl_waitpid(int pid, int &status, int options) 572 long pid, options = 0; local 577 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz|l", &pid, &z_status, &options) == FAILURE) 584 child_id = waitpid((pid_t) pid, &status, options); 1059 add_assoc_long_ex(user_siginfo, "pid", sizeof("pid"), siginfo.si_pid); 1103 /* {{{ proto int pcntl_getpriority([int pid [, in 1108 long pid = getpid(); local 1147 long pid = getpid(); local [all...] |
| /PHP_5_4/ext/standard/tests/http/ |
| H A D | server.inc | 32 $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/sapi/fpm/fpm/ |
| H A D | fpm.c | 32 .pid = NULL, 45 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon) /* {{{ */ argument 53 fpm_globals.pid = pid; 83 zlog(ZLOG_NOTICE, "fpm is running, pid %d", (int) fpm_globals.parent_pid);
|
| H A D | fpm.h | 40 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon); 48 char *pid; member in struct:fpm_globals_s
|
| H A D | fpm_children.c | 122 static struct fpm_child_s *fpm_child_find(pid_t pid) /* {{{ */ argument 130 if (child->pid == pid) { 180 pid_t pid; local 183 while ( (pid = waitpid(-1, &status, WNOHANG | WUNTRACED)) > 0) { 188 child = fpm_child_find(pid); 227 zlog(ZLOG_NOTICE, "child %d stopped for tracing", (int) pid); 252 zlog(severity, "[pool %s] child %d exited %s after %ld.%06d seconds from start", child->wp->config->name, (int) pid, buf, tv2.tv_sec, (int) tv2.tv_usec); 254 zlog(ZLOG_DEBUG, "[pool %s] child %d has been killed by the process managment after %ld.%06d seconds from start", child->wp->config->name, (int) pid, tv2.tv_sec, (int) tv2.tv_usec); 295 zlog(ZLOG_ALERT, "oops, unknown child (%d) exited %s. Please open a bug report (https://bugs.php.net).", pid, bu 363 pid_t pid; local [all...] |
| H A D | fpm_children.h | 32 pid_t pid; member in struct:fpm_child_s
|
| H A D | fpm_php_trace.c | 46 pid_t pid = child->pid; local 57 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); 144 zlog(ZLOG_NOTICE, "about to trace %d", (int) child->pid); 153 if (0 > fpm_trace_ready(child->pid)) { 161 if (0 > fpm_trace_close(child->pid)) { 169 fpm_pctl_kill(child->pid, FPM_PCTL_CONT); 172 zlog(ZLOG_NOTICE, "finished trace of %d", (int) child->pid);
|
| H A D | fpm_process_ctl.c | 122 int fpm_pctl_kill(pid_t pid, int how) /* {{{ */ argument 142 return kill(pid, s); 155 int res = kill(child->pid, signo); 159 fpm_signal_names[signo] ? fpm_signal_names[signo] : "", (int) child->pid); 370 fpm_pctl_kill(last_idle_child->pid, FPM_PCTL_QUIT); 383 fpm_pctl_kill(last_idle_child->pid, FPM_PCTL_QUIT);
|
| H A D | fpm_process_ctl.h | 22 int fpm_pctl_kill(pid_t pid, int how);
|
| H A D | fpm_request.c | 267 fpm_trace_signal(child->pid); 270 child->wp->config->name, (int) child->pid, purified_script_filename, proc.request_method, proc.request_uri, 277 fpm_pctl_kill(child->pid, FPM_PCTL_TERM); 280 child->wp->config->name, (int) child->pid, purified_script_filename, proc.request_method, proc.request_uri,
|
| H A D | fpm_scoreboard.c | 247 void fpm_scoreboard_child_use(struct fpm_scoreboard_s *scoreboard, int child_index, pid_t pid) /* {{{ */ argument 256 proc->pid = pid;
|
| H A D | fpm_scoreboard.h | 27 pid_t pid; member in struct:fpm_scoreboard_proc_s 85 void fpm_scoreboard_child_use(struct fpm_scoreboard_s *scoreboard, int child_index, pid_t pid);
|
| H A D | fpm_trace.h | 10 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 D | fpm_trace_mach.c | 47 int fpm_trace_signal(pid_t pid) /* {{{ */ argument 49 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { 50 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); 57 int fpm_trace_ready(pid_t pid) /* {{{ */ argument 61 kr = task_for_pid(mach_task_self(), pid, &target); 75 int fpm_trace_close(pid_t pid) /* {{{ */ argument
|
| H A D | fpm_trace_pread.c | 26 int fpm_trace_signal(pid_t pid) /* {{{ */ argument 28 if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { 29 zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); 36 int fpm_trace_ready(pid_t pid) /* {{{ */ argument 40 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); 50 int fpm_trace_close(pid_t pid) /* {{{ */ argument
|
| H A D | fpm_trace_ptrace.c | 29 int fpm_trace_signal(pid_t pid) /* {{{ */ argument 31 if (0 > ptrace(PTRACE_ATTACH, pid, 0, 0)) { 32 zlog(ZLOG_SYSERROR, "failed to ptrace(ATTACH) child %d", pid); 39 int fpm_trace_ready(pid_t pid) /* {{{ */ argument 41 traced_pid = pid; 46 int fpm_trace_close(pid_t pid) /* {{{ */ argument 48 if (0 > ptrace(PTRACE_DETACH, pid, (void *) 1, 0)) { 49 zlog(ZLOG_SYSERROR, "failed to ptrace(DETACH) child %d", pid); 68 zlog(ZLOG_SYSERROR, "failed to ptrace(PT_IO) pid %d", traced_pid); 75 zlog(ZLOG_SYSERROR, "failed to ptrace(PEEKDATA) pid [all...] |
| /PHP_5_4/sapi/fpm/ |
| H A D | init.d.php-fpm.in | 18 php_fpm_PID=@localstatedir@/run/php-fpm.pid 21 php_opts="--fpm-config $php_fpm_CONF --pid $php_fpm_PID" 78 echo "warning, no pid file found - php-fpm is not running ?" 98 echo "warning, no pid file found - php-fpm is not running ?" 124 echo "warning, no pid file found - php-fpm is not running ?"
|
| /PHP_5_4/ext/ftp/tests/ |
| H A D | server.inc | 24 $pid = pcntl_fork(); 31 $pid = pcntl_fork(); 32 if($pid === 0){ 60 if ($pid) {
|
| /PHP_5_4/ext/com_dotnet/ |
| H A D | com_wrapper.c | 219 /* [out] */ DISPID *pid) 234 *pid = Z_LVAL_PP(tmp); 405 /* [out] */ DISPID *pid) 414 *pid = next; 458 ulong pid; local 472 &namelen, &pid, 0, &pos))) { 475 snprintf(namebuf, sizeof(namebuf), "%d", pid); 489 pid = zend_hash_next_free_element(disp->dispid_to_name); 490 zend_hash_index_update(disp->dispid_to_name, pid, (void*)&tmp, sizeof(zval *), NULL); 493 ZVAL_LONG(tmp, pid); 215 disp_getdispid( IDispatchEx *This, BSTR bstrName, DWORD grfdex, DISPID *pid) argument 401 disp_getnextdispid( IDispatchEx *This, DWORD grfdex, DISPID id, DISPID *pid) argument 590 ulong pid; local [all...] |
| /PHP_5_4/ext/posix/ |
| H A D | posix.c | 61 ZEND_ARG_INFO(0, pid) 122 ZEND_ARG_INFO(0, pid) 128 ZEND_ARG_INFO(0, pid) 134 ZEND_ARG_INFO(0, pid) 391 /* {{{ proto bool posix_kill(int pid, int sig) 396 long pid, sig; local 398 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &pid, &sig) == FAILURE) { 402 if (kill(pid, sig) < 0) { 557 /* {{{ proto bool posix_setpgid(int pid, int pgid) 561 long pid, pgi local [all...] |
| /PHP_5_4/ext/standard/ |
| H A D | pageinfo.c | 137 int pid; local 143 pid = getpid(); 144 if (pid < 0) { 147 RETURN_LONG((long) pid);
|
| /PHP_5_4/sapi/litespeed/ |
| H A D | lsapilib.c | 1665 static lsapi_child_status * find_child_status( int pid ) 1670 if ( pStatus->m_pid == pid ) { 1682 int status, pid; local 1685 pid = waitpid( -1, &status, WNOHANG|WUNTRACED ); 1686 if ( pid <= 0 ) { 1689 child_status = find_child_status( pid ); 1807 int pid; local 1892 pid = fork(); 1893 if ( !pid ) { 1909 if ( pid [all...] |
| H A D | lsapi_main.c | 814 pid_t pid; local 832 pid = fork(); 833 switch( pid ) { 854 pid = wait( &status );
|
| /PHP_5_4/ext/fileinfo/libmagic/ |
| H A D | compress.c | 391 pid_t pid; local 405 switch (pid = fork()) { 496 while (waitpid(pid, NULL, WNOHANG) != -1)
|