ioctl's that flush typeahead on SunOS 4.0.3

Jef Poskanzer jef at well.sf.ca.us
Tue Oct 30 07:29:32 AEST 1990


In the referenced message, rcomr at koel.co.rmit.oz (Mark Rawling) wrote:
}(SS1+, SunOS4.1, X windows)
}	% set filec      (causes the bug)
}	% set ignoreeof  (saves you from the consequences of the bug)
}	% vi
}	(in vi - :map #1 :w^M^Z ie write out the file and suspend)
}	(in vi - hit F1 and any other key close together eg F1x)
}	Stopped
}	%
}	Use "logout" to logout.
}	%
}
}The extra character (x) gets swallowed and the shell gets an EOF.

I ran into this problem when SunOS4.1 first came out.  Turns out it's
caused by running 4.0.3 binaries, perhaps off a file server that hasn't
been upgraded yet.  Bring your whole installation up to spec and the
problem should go away.

Obligatory whines:  It's too bad Sun can't make their releases binary
compatible.  It's too bad comp.sys.sun's turnaround is so slow that
it's useless for debugging.
---
Jef

  Jef Poskanzer  jef at well.sf.ca.us  {ucbvax, apple, hplabs}!well!jef
  "And gladly wolde he lerne, and gladly teche." -- Geoffrey Chaucer



More information about the Comp.unix.internals mailing list