From 2a6a93953b62a30543f61ede5255f29e167ab602 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Feb 2008 12:46:05 +0100 Subject: [PATCH] only use posix_getpid() for debugging when possible --- functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 873df424..024232e9 100644 --- a/functions.php +++ b/functions.php @@ -87,7 +87,9 @@ */ function _debug($msg) { $ts = strftime("%H:%M:%S", time()); - $ts = "$ts/" . posix_getpid(); + if (function_exists('posix_getpid')) { + $ts = "$ts/" . posix_getpid(); + } print "[$ts] $msg\n"; } // function _debug -- 2.39.2