Bug 513 - Suspending and resuming vi gives TIOCGWINSIZ error
Summary: Suspending and resuming vi gives TIOCGWINSIZ error
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-06-14 17:20 UTC by fenner
Modified: 1995-08-07 17:46 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fenner 1995-06-14 17:20:00 UTC
	
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
Comment 1 Peter Wemm freebsd_committer freebsd_triage 1995-08-07 16:39:16 UTC
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".. 
Comment 2 Peter Wemm freebsd_committer freebsd_triage 1995-08-07 17:44:40 UTC
State Changed
From-To: analyzed->closed

Fixed in v1.4 of vi/sex/sex_window.c