Skip to content

Commit

Permalink
fixup! Copy illumos waker pipe work around to eventfd
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Aug 10, 2024
1 parent 619c909 commit 38d1946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sys/unix/waker/eventfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Waker {
// generated.
// See https://www.illumos.org/issues/16700.
#[cfg(target_os = "illumos")]
self.reset();
self.reset()?;

let buf: [u8; 8] = 1u64.to_ne_bytes();
match (&self.fd).write(&buf) {
Expand Down
2 changes: 1 addition & 1 deletion src/sys/unix/waker/pipe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Waker {
// The epoll emulation on some illumos systems currently requires
// the pipe buffer to be completely empty for an edge-triggered
// wakeup on the pipe read side.
// See https://www.illumos.org/issues/16700.
// See https://www.illumos.org/issues/13436.
#[cfg(target_os = "illumos")]
self.empty();

Expand Down

0 comments on commit 38d1946

Please sign in to comment.