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

[RASP] Python/PHP 探针消息进程未正确初始化 #526

Closed
Hackerl opened this issue Aug 25, 2023 · 1 comment
Closed

[RASP] Python/PHP 探针消息进程未正确初始化 #526

Hackerl opened this issue Aug 25, 2023 · 1 comment

Comments

@Hackerl
Copy link
Collaborator

Hackerl commented Aug 25, 2023

eventfd 以及 quotas 初始化应该在 fork 之前。

    int efd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK);

    if (efd < 0) {
        LOG_ERROR("create event fd failed");
        return;
    }

    gProbe->efd = efd;
    std::fill_n(gProbe->quotas[0], sizeof(gProbe->quotas) / sizeof(**gProbe->quotas), DEFAULT_QUOTAS);
@Hackerl
Copy link
Collaborator Author

Hackerl commented Aug 26, 2023

#527

@Hackerl Hackerl closed this as completed Aug 29, 2023
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