Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcntl_fork issue #71

Open
natomist opened this issue Sep 16, 2024 · 0 comments
Open

pcntl_fork issue #71

natomist opened this issue Sep 16, 2024 · 0 comments

Comments

@natomist
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant