Window switching killing programs

Michael Gersten michael at stb.uucp
Sun Jan 14 16:34:23 AEST 1990


What EXACTLY happens to a program when a window change occurs? What
EXACTLY happens to input queues/terminal lines?

I have two programs that can detect a change in the active window.
One prints "EXIT" and exits the program. There is no string "EXIT"
anywhere in the program; at that point, unless some signal that
I'm not expecting is killing the program there is no way to leave
without printing a message.

The other program is "less", and if it is reading a pipe when the active
window changes, then it aborts reading the pipe and thinks it is working
with an empty file.

Any ideas?

			Michael
-- 
		Michael
denwa!stb!michael anes.ucla.edu!stb!michael 
"The 80's: Ten years that came in a row."



More information about the Unix-pc.general mailing list