Skip to content

pcntl_fork issue #71

@natomist

Description

@natomist

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions