News for hackers. Stuff that matters.
Re:Unix System Call Timeouts by AstralStorm on Monday March 13, 2017 @03:45AM (#13855935)
You may also interrupt most operations using pthread_cancel and a few other pthread functions.
Re:Unix System Call Timeouts by geofft on Monday March 13, 2017 @10:22AM (#13858001)
pthread_cancel to abort a syscall is usually internally implemented by sending the thread a signal (on glibc, it's one of the real-time signals below SIGRTMIN), causing the syscall to return EINTR. So it's the same logic as SIGALRM, essentially.

(And for some system calls, like certain NFS operations, they aren't interruptible by a signal of any sort other than perhaps SIGKILL.)