diff options
author | Antony Dovgal <tony2001@php.net> | 2010-06-16 08:58:42 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2010-06-16 08:58:42 +0000 |
commit | b95170580c452934898c32dc6192eace99cbb22d (patch) | |
tree | 84486f1c3e95dfd614d2c8dd649468aacc0898fa | |
parent | 42a57f7656b5cc2aa5ac6b2a1397a9978810cfcb (diff) | |
download | php-git-b95170580c452934898c32dc6192eace99cbb22d.tar.gz |
improve ptrace() test
change error to warning - there can be no trace method available at all
-rw-r--r-- | sapi/fpm/config.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sapi/fpm/config.m4 b/sapi/fpm/config.m4 index 4c0b67fdae..0cefd968d9 100644 --- a/sapi/fpm/config.m4 +++ b/sapi/fpm/config.m4 @@ -362,7 +362,7 @@ AC_DEFUN([AC_FPM_TRACE], int ret = 0; if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) { - return 1; + return 2; } waitpid(child, &status, 0); @@ -376,7 +376,7 @@ AC_DEFUN([AC_FPM_TRACE], }; if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) { - ret = 1; + ret = 3; } #else errno = 0; @@ -384,7 +384,7 @@ AC_DEFUN([AC_FPM_TRACE], v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0); if (errno) { - ret = 1; + ret = 4; } #endif ptrace(PTRACE_DETACH, child, (void *) 1, 0); @@ -495,7 +495,7 @@ AC_DEFUN([AC_FPM_TRACE], fpm_trace_type=mach else - AC_MSG_ERROR([FPM Trace - ptrace, pread, or mach: could not be found]) + AC_MSG_WARN([FPM Trace - ptrace, pread, or mach: could not be found]) fi ]) |