summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-04-19 14:15:16 +0200
committerUrban Müller2017-04-19 14:15:16 +0200
commitca5acf36786ae7f286b27f912b612dd73806b854 (patch)
tree16d01a5903564d8452a8afb72ce6e41902c00474 /it.class
parent358fd271ed287e4eb9c524a0097e17362713193e (diff)
downloaditools-ca5acf36786ae7f286b27f912b612dd73806b854.tar.gz
itools-ca5acf36786ae7f286b27f912b612dd73806b854.tar.bz2
itools-ca5acf36786ae7f286b27f912b612dd73806b854.zip
non-kludge solution for parent tree
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 4384d2c..6aa7255 100644
--- a/it.class
+++ b/it.class
@@ -244,7 +244,7 @@ static function error($p = array())
$body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : "";
$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 -a -l -p | grep -B 3 '[,]" . getmypid() . "\b'") . "\n";
+ $body .= $_SERVER['REMOTE_ADDR'] ? "" : "Pstree:\n" . it::exec("pstree -als " . getmypid() . " | head -n -3") . "\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" : "";