|
|
|
|
|
by geofft
3582 days ago
|
|
Here's a sound implementation with signals using only the Rust standard library and POSIX, no threads: https://play.rust-lang.org/?gist=ba4802a59f462cb8bce0c1bac92... It would be significantly simpler with sigwaitinfo() if you didn't care to do a real select loop, but I assume most programs want a real select (or poll/epoll/whatever) loop. |
|