Paul Ackersviller wrote:
> With athena gui version on AIX, vim will consistently go into an > infinite loop if the network connection drops. Trussing such a process > points to a select system call, so I found this one without any check on > the return value. This patch mostly prevents the problem, although > not quite 100% of the time. > > My EINTR check is just what I'm guessing some other OSes might need, it > doesn't seem to matter for AIX. In fact the error-handling I'm doing > below doesn't seem to matter either, as I can't get it to execute, nor > cai I stop there in a debugger, but the check seems enough for exiting > the process via somewhere in X libraries. > > Though this code isn't gui-specific, I haven't seen this behaviour in a > terminal, however I mostly use screen for network sessions. It looks like this code depends on undocumented or system-specific behavior. At least for what I could find poll() and select() called with no file descriptors will always wait until the timeout and then return zero. Do you have documentation about when the error code would be returned? Also, I don't see how a hang can occur here when poll() or select() returns without waiting. Vim would simply continue. Or is the delay critical in some situation? -- I used to be indecisive, now I'm not sure. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/201910272107.x9RL7EHt024626%40masaka.moolenaar.net.