Skip to content

Can we implement some flavor of interruptible on Native using signals? #4463

@armanbilge

Description

@armanbilge

It seems like most blocking syscalls will return -1 and set errno to EINTR if a signal is sent to the thread while the syscall is executing. So this seems like an interesting way to support (more graceful) cancelation of these operations on Native. On the JVM, we often resort to a clunky cancelable which typically closes a file descriptor to force the syscall to terminate.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions