4 ms·
Can't you measure and timeout on the file-descriptor writes too?
by zeisss 10y ago
Can't you measure and timeout on the file-descriptor writes too?
- pyre 10y agoDo you want to start wrapping your system calls to read files in code that forks to periodically check for a hung system call?
- jabl 10y agoIt's worse that that, actually. With hard mounts (the default), the only way to interrupt is with SIGKILL, which if my memory serves me correctly, is a process-wide signal. So you'd have to do all NFS I/O in a separate child process. With soft mounts (does EFS support this?) you can exchange SIGKILL for religiously checking return values for all I/O syscalls, retrying partial writes and whatnot.