only use posix_getpid() for debugging when possible
This commit is contained in:
parent
e78fd196a9
commit
2a6a93953b
|
@ -87,7 +87,9 @@
|
||||||
*/
|
*/
|
||||||
function _debug($msg) {
|
function _debug($msg) {
|
||||||
$ts = strftime("%H:%M:%S", time());
|
$ts = strftime("%H:%M:%S", time());
|
||||||
$ts = "$ts/" . posix_getpid();
|
if (function_exists('posix_getpid')) {
|
||||||
|
$ts = "$ts/" . posix_getpid();
|
||||||
|
}
|
||||||
print "[$ts] $msg\n";
|
print "[$ts] $msg\n";
|
||||||
} // function _debug
|
} // function _debug
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue