functions.php
changeset 15 2adca0f363fd
parent 14 7a1573676cc4
child 16 23d4cf2f183b
--- a/functions.php	Mon Mar 31 07:40:30 2008 -0400
+++ b/functions.php	Wed Apr 02 00:23:51 2008 -0400
@@ -39,7 +39,8 @@
 function status($msg)
 {
   $h = @fopen('php://stderr', 'w');
-  fwrite($h, "\x1B[32;1m[Greyhound] \x1B[32;0m$msg\x1B[0m\n");
+  $label = ( defined('HTTPD_WS_CHILD') ) ? 'Child ' . getmypid() : ' Greyhound ';
+  fwrite($h, "\x1B[32;1m[$label] \x1B[32;0m$msg\x1B[0m\n");
   fclose($h);
 }