????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.142.171.199 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/sapi/fpm/fpm/ |
Upload File : |
/* $Id: fpm_trace_pread.c,v 1.7 2008/08/26 15:09:15 anight Exp $ */ /* (c) 2007,2008 Andrei Nigmatulin */ #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #include "fpm_config.h" #include <unistd.h> #include <fcntl.h> #include <stdio.h> #if HAVE_INTTYPES_H # include <inttypes.h> #else # include <stdint.h> #endif #include "fpm_trace.h" #include "fpm_process_ctl.h" #include "zlog.h" static int mem_file = -1; int fpm_trace_signal(pid_t pid) /* {{{ */ { if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) { zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid); return -1; } return 0; } /* }}} */ int fpm_trace_ready(pid_t pid) /* {{{ */ { char buf[128]; sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid); mem_file = open(buf, O_RDONLY); if (0 > mem_file) { zlog(ZLOG_SYSERROR, "failed to open %s", buf); return -1; } return 0; } /* }}} */ int fpm_trace_close(pid_t pid) /* {{{ */ { close(mem_file); mem_file = -1; return 0; } /* }}} */ int fpm_trace_get_long(long addr, long *data) /* {{{ */ { if (sizeof(*data) != pread(mem_file, (void *) data, sizeof(*data), (uintptr_t) addr)) { zlog(ZLOG_SYSERROR, "pread() failed"); return -1; } return 0; } /* }}} */