Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

100% cpu usage on freebsd #130

@knz

Description

@knz

Just installed from source since the OVH freebsd pkg archive doesn't deliver Freebsd 12 binaries yet.

The beamium binary is using 100% CPU.

Debugger reveals that the main loop in main.rs never sleeps: let watch_event_count = watcher_rx.try_iter().count(); completes immediately if there are no events, and the rest of the loop body doesn't do anything when there are no events.

Hence the busy-loop.

Adding a thread::sleep at the end of that loop seems to alleviate the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions