1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-16 04:05:58 +00:00

only use posix_getpid() for debugging when possible

This commit is contained in:
Andrew Dolgov
2008-02-26 12:46:05 +01:00
parent e78fd196a9
commit 2a6a93953b

View File

@@ -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