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 / p013_cancel_blocked_read.vec
| 1 | case cancel_blocked_read |
| 2 | kind negative |
| 3 | # cancel interrupts a parked reader once, no byte moved; the next call runs normally |
| 4 | create R W A => OK |
| 5 | bread R 4 cancel R => INTERRUPTED |
| 6 | check cancellations=1 waits=1 wakeups=1 |
| 7 | read R 4 => WOULD_BLOCK |
| 8 | write W "ok" => OK n=2 |
| 9 | read R 4 => OK n=2 data="ok" |
| 10 | close W => OK |
| 11 | close R => OK |
| 12 | check empty |