After suspending and resuming a vi session when telnet'd in, I get: Error: TIOCGWINSZ: No such file or directory. It doesn't appear to happen when using rlogin. How-To-Repeat: telnet freebsd-machine log in vi file ^Z fg
State Changed From-To: open->analyzed vi is getting upset about the window size coming back as 0x0 after the TIOCGWINSZ ioctl.. It works fine if you run in (say) an xterm or (as you note) an rlogin where the window size is propagated. The "Interrupted system call" is only a residual errno... It sometimes says "no such file or directory"..
State Changed From-To: analyzed->closed Fixed in v1.4 of vi/sex/sex_window.c