gvisor/pkg/waiter
Etienne Perot 6f60a2b0a2 Implement `fcntl` options `F_GETSIG` and `F_SETSIG`.
These options allow overriding the signal that gets sent to the process when
I/O operations are available on the file descriptor, rather than the default
`SIGIO` signal. Doing so also populates `siginfo` to contain extra information
about which file descriptor caused the event (`si_fd`) and what events happened
on it (`si_band`). The logic around which FD is populated within `si_fd`
matches Linux's, which means it has some weird edge cases where that value may
not actually refer to a file descriptor that is still valid.

This CL also ports extra S/R logic regarding async handler in VFS2.
Without this, async I/O handlers aren't properly re-registered after S/R.

PiperOrigin-RevId: 345436598
2020-12-03 06:20:29 -08:00
..
BUILD Standardize on tools directory. 2020-01-27 12:21:00 -08:00
waiter.go Implement `fcntl` options `F_GETSIG` and `F_SETSIG`. 2020-12-03 06:20:29 -08:00
waiter_test.go Implement `fcntl` options `F_GETSIG` and `F_SETSIG`. 2020-12-03 06:20:29 -08:00