interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / kernel / tests / fixtures / pipe / p014_cancel_pending_write.vec

15 lines · 357 bytes Raw Blame History
1case cancel_pending_write
2kind negative
3# a cancel with no waiter interrupts the next call on that end only
4create R W A => OK
5cancel W => OK
6read R 1 => WOULD_BLOCK
7write W "x" => INTERRUPTED
8write W "x" => OK n=1
9cancel R => OK
10read R 1 => INTERRUPTED
11read R 1 => OK n=1 data="x"
12check cancellations=2 bytes_read=1
13close R => OK
14close W => OK
15check empty