You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have long running script which sometime run pcntl_fork() to tun several tasks parallel.
Master process calls pinba_timer_start and pinba_timer_stop. Information of timers leave in memory and clones to child processes via forking. Every child process send to server own data and data of parent process. That is why information of master duplicates several times.
I will fix it by calling pinba_flush() and pinba_reset() before process forking. But maybe you can add checking PID of information before sending data to server?
The text was updated successfully, but these errors were encountered:
We have long running script which sometime run pcntl_fork() to tun several tasks parallel.
Master process calls pinba_timer_start and pinba_timer_stop. Information of timers leave in memory and clones to child processes via forking. Every child process send to server own data and data of parent process. That is why information of master duplicates several times.
I will fix it by calling pinba_flush() and pinba_reset() before process forking. But maybe you can add checking PID of information before sending data to server?
The text was updated successfully, but these errors were encountered: