Window switching killing programs
Bruce Becker
bdb at becker.UUCP
Mon Jan 15 00:27:58 AEST 1990
In article <1990Jan14.053423.29887 at stb.uucp> michael at stb.UUCP (Michael Gersten) writes:
|
|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?
The window system sends the "SIGWIND" signal
to process involved in a window change. Here's
the entry in "/usr/include/sys/signal.h" -
#sccs "@(#)uts/kern/sys:signal.h 1.1"
[...]
#define SIGWIND 20 /* window change */
[...]
It looks like these programs are catching the
signal and doing something unuseful with it.
Or else there's some system bug...
--
,,,, Bruce Becker Toronto, Ont.
w \$$/ Internet: bdb at becker.UUCP, bruce at gpu.utcs.toronto.edu
`/c/-e BitNet: BECKER at HUMBER.BITNET
_/ >_ "Money is the root of all money" - Adam
More information about the Unix-pc.general
mailing list