Searched defs:pid (Results 1 - 24 of 24) sorted by relevance

/PHP_5_6/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);
H A Dpcntl.c57 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_6/sapi/fpm/fpm/
H A Dfpm_children.c122 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 management 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 Dfpm_children.h32 pid_t pid; member in struct:fpm_child_s
H A Dfpm_php_trace.c46 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 Dfpm_process_ctl.c122 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 Dfpm_scoreboard.c253 void fpm_scoreboard_child_use(struct fpm_scoreboard_s *scoreboard, int child_index, pid_t pid) /* {{{ */ argument
262 proc->pid = pid;
H A Dfpm_scoreboard.h27 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 Dfpm_trace_mach.c47 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 Dfpm_trace_pread.c26 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 Dfpm_trace_ptrace.c29 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...]
H A Dfpm.c32 .pid = NULL,
46 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon, int force_stderr) /* {{{ */ argument
54 fpm_globals.pid = pid;
85 zlog(ZLOG_NOTICE, "fpm is running, pid %d", (int) fpm_globals.parent_pid);
H A Dfpm.h40 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon, int force_stderr);
48 char *pid; member in struct:fpm_globals_s
H A Dfpm_unix.c315 pid_t pid = fork(); local
316 switch (pid) {
/PHP_5_6/ext/com_dotnet/
H A Dcom_wrapper.c219 /* [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_6/ext/mysqlnd/
H A Dmysqlnd_debug.h53 int pid; member in struct:st_mysqlnd_debug
/PHP_5_6/ext/posix/
H A Dposix.c61 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_6/ext/standard/
H A Dpageinfo.c137 int pid; local
143 pid = getpid();
144 if (pid < 0) {
147 RETURN_LONG((long) pid);
/PHP_5_6/ext/fileinfo/libmagic/
H A Dcompress.c390 pid_t pid; local
404 switch (pid = fork()) {
495 while (waitpid(pid, NULL, WNOHANG) != -1)
/PHP_5_6/ext/sqlite3/libsqlite/
H A Dsqlite3.c23718 /* This variable holds the process id (pid) from when the xRandomness()
25201 OSTRACE(("LOCK %d %s was %s(%s,%d) pid=%d (unix)\n", pFile->h,
25409 OSTRACE(("UNLOCK %d %d was %d(%d,%d) pid=%d (unix)\n", pFile->h, eFileLock,
25831 OSTRACE(("UNLOCK %d %d was %d pid=%d (dotlock)\n", pFile->h, eFileLock,
26050 OSTRACE(("UNLOCK %d %d was %d pid=%d (flock)\n", pFile->h, eFileLock,
26220 OSTRACE(("UNLOCK %d %d was %d pid=%d (sem)\n", pFile->h, eFileLock,
26433 OSTRACE(("LOCK %d %s was %s(%s,%d) pid=%d (afp)\n", pFile->h,
26619 OSTRACE(("UNLOCK %d %d was %d(%d,%d) pid=%d (afp)\n", pFile->h, eFileLock,
36572 DWORD pid = osGetCurrentProcessId(); local
[all...]
/PHP_5_6/sapi/cgi/
H A Dcgi_main.c1440 fprintf(stderr, "FastCGI shutdown, pid %d\n", getpid());
2011 pid_t pid; local
2040 pid = fork();
2041 switch (pid) {
2067 fprintf(stderr, "Wait for kids, pid %d\n", getpid());
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_opcode.c54 zend_ulong id = 0, *pid = NULL; local
56 if (zend_hash_index_find(vars, (zend_ulong) ops->vars - op->var, (void**) &pid) != SUCCESS) {
62 } else id = *pid;
/PHP_5_6/sapi/litespeed/
H A Dlsapi_main.c844 pid_t pid; local
862 pid = fork();
863 switch( pid ) {
884 pid = wait( &status );
H A Dlsapilib.c2417 int pid; local
2435 pid = getpid();
2436 setpgid( pid, pid );
2495 static lsapi_child_status * find_child_status( int pid )
2501 if ( pStatus->m_pid == pid )
2516 int status, pid; local
2520 pid = waitpid( -1, &status, WNOHANG|WUNTRACED );
2521 if ( pid <= 0 )
2529 fprintf( stderr, "Child process with pid
2695 int pid; local
[all...]

Completed in 216 milliseconds