Skip to content

signal: doesn't wakeup the polling driver #895

Description

@Berrysoft

The polling crate handles EINTR internally: smol-rs/polling#164

So a simple call to AsyncFlag::notify won't wake up the driver.

There are choices:

  • Bring compio_runtime::event back to make it always notify the driver, and use it in compio-signal.
  • Always call notify inside a different thread.
  • Use pipe instead of AsyncFlag to notify.

cc: @George-Miao

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdriver: pollingAbout the polling driverpackage: signalRelated to compio-signal

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions