summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2017-07-25 15:47:05 +0200
committerUrban Müller2017-07-25 15:47:05 +0200
commit1a0b3ddec083d4fc39137dae813e2a42d757b335 (patch)
tree145b67efd8707d00b85bb35c8a48f475ac924127
parent610f6f53f74fe29c7b8a7ef994108afc5d0b5019 (diff)
downloaditools-1a0b3ddec083d4fc39137dae813e2a42d757b335.tar.gz
itools-1a0b3ddec083d4fc39137dae813e2a42d757b335.tar.bz2
itools-1a0b3ddec083d4fc39137dae813e2a42d757b335.zip
add running processes for easier race condition hunting
-rw-r--r--it.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it.class b/it.class
index 52d54ed..96aafc8 100644
--- a/it.class
+++ b/it.class
@@ -247,6 +247,7 @@ static function error($p = array())
$body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : "";
$body .= $_COOKIE ? "\$_COOKIE: " . var_export($_COOKIE, true) . "\n\n" : "";
$body .= $_SERVER['REMOTE_ADDR'] ? "" : "Pstree:\n" . it::exec("pstree -als " . getmypid() . " | head -n -3") . "\n";
+ $body .= "Processes:\n" . it::exec('ps auxf | egrep -v "rotatelogs|getbanner|logaction|httpd|systemd|sd-pam"|egrep "^www|^cron"') . "\n";
$body .= $_SERVER ? "\$_SERVER: " . var_export($_SERVER, true) . "\n\n" : "";
$body .= $_FILES ? "\$_FILES: " . var_export($_FILES, true) . "\n\n" : "";
$body .= $stackframes ? "Stack: " . print_r($stackframes, true) . "\n\n" : "";