Skip to content

后台工作线程在fork后不会再工作 #208

@jamesge

Description

@jamesge

比如bvar的sampler thread在fork后就不会再运行,这就是之前simpledb中vars异常的原因。这要通过pthread_atfork才能支持.
因为有很多bvar是全局变量,所以即使用户没有在代码中明确地使用rpc相关的东西,在fork前也会启动sampling thread,从而造成问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementimprovements on existing featuresofficialcreated by brpc authors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions