Skip to content

addSignal with 100% cpu #175

Closed
Closed
@yizhihouzi

Description

@yizhihouzi

Hello, I have a question.
Why the code blow run with 100% CPU, any question with the code?

require __DIR__ . '/../vendor/autoload.php';

use React\EventLoop\Factory;

$loop = Factory::create();
$loop->addSignal(SIGTERM, function () {
});
$loop->run();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions