mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 14:01:30 +00:00
only use posix_getpid() for debugging when possible
This commit is contained in:
@@ -87,7 +87,9 @@
|
|||||||
*/
|
*/
|
||||||
function _debug($msg) {
|
function _debug($msg) {
|
||||||
$ts = strftime("%H:%M:%S", time());
|
$ts = strftime("%H:%M:%S", time());
|
||||||
|
if (function_exists('posix_getpid')) {
|
||||||
$ts = "$ts/" . posix_getpid();
|
$ts = "$ts/" . posix_getpid();
|
||||||
|
}
|
||||||
print "[$ts] $msg\n";
|
print "[$ts] $msg\n";
|
||||||
} // function _debug
|
} // function _debug
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user