Skip to content

Commit d7c9ee8

Browse files
timeout: Replace 100ms polling with signal waiting. Linux/FreeBSD: sigtimedwait(). macOS: kqueue with EVFILT_SIGNAL. Fixed signal mask inheritance for child processes. Handle overflow for extremely large timeout values
1 parent 62c2007 commit d7c9ee8

File tree

4 files changed

+540
-112
lines changed

4 files changed

+540
-112
lines changed

src/uu/timeout/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ path = "src/timeout.rs"
2020
[dependencies]
2121
clap = { workspace = true }
2222
libc = { workspace = true }
23-
nix = { workspace = true, features = ["signal"] }
23+
nix = { workspace = true, features = ["signal", "event"] }
2424
uucore = { workspace = true, features = ["parser", "process", "signals"] }
2525
fluent = { workspace = true }
2626

0 commit comments

Comments
 (0)