diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 490e8fedd..8960dbc62 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,18 @@ jobs: run: cargo test --all-features - name: Tests release build run: cargo test --release --all-features + TestWakerPipe: + runs-on: ubuntu-latest + timeout-minutes: 10 + env: + RUSTFLAGS: "--cfg mio_unsupported_force_waker_pipe" + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@stable + - name: Tests + run: cargo test --all-features + - name: Tests release build + run: cargo test --release --all-features MinimalVersions: runs-on: ${{ matrix.os }} timeout-minutes: 10 diff --git a/src/sys/unix/waker.rs b/src/sys/unix/waker.rs index 4b73df32d..ff6a4b506 100644 --- a/src/sys/unix/waker.rs +++ b/src/sys/unix/waker.rs @@ -224,7 +224,7 @@ mod pipe { impl WakerInternal { pub fn new() -> io::Result { - let [sender, receiver] = pipe::new_raw()?; + let [receiver, sender] = pipe::new_raw()?; let sender = unsafe { File::from_raw_fd(sender) }; let receiver = unsafe { File::from_raw_fd(receiver) }; Ok(WakerInternal { sender, receiver })