aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / kernel / tests / fixtures / pipe / p014_cancel_pending_write.vec
| 1 | case cancel_pending_write |
| 2 | kind negative |
| 3 | # a cancel with no waiter interrupts the next call on that end only |
| 4 | create R W A => OK |
| 5 | cancel W => OK |
| 6 | read R 1 => WOULD_BLOCK |
| 7 | write W "x" => INTERRUPTED |
| 8 | write W "x" => OK n=1 |
| 9 | cancel R => OK |
| 10 | read R 1 => INTERRUPTED |
| 11 | read R 1 => OK n=1 data="x" |
| 12 | check cancellations=2 bytes_read=1 |
| 13 | close R => OK |
| 14 | close W => OK |
| 15 | check empty |