3 ms·
> How is a syscall-level timeout more useful than a whole-application watchdog for handling flaky mounted filesystems? It's more useful because once you enter
by TheDong 10y ago
> How is a syscall-level timeout more useful than a whole-application watchdog for handling flaky mounted filesystems?
It's more useful because once you enter into a syscall, it's out of the application's control.
The kernel's off in its happy place doing whatever it does, and the application has no control over that other than being able to specify timeouts to begin with or having async epoll-like interfaces.
- ec109685 10y agos/application/thread/
- AstralStorm 10y agoYou can also interrupt syscalls using signals or pthread_cancel.