chiark / gitweb /
Block signals except during the event loop. Closes:#692233.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Jan 2017 00:44:35 +0000 (00:44 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 3 Jan 2017 01:02:41 +0000 (01:02 +0000)
commit91b2ee084430dbe5d81d32d15e06b53d931514d9
tree4c4d8c97359280219b18f58a0d7623f05f0ae970
parent1e7a92dac7fa412cc79eed3aa5db3050ed5b6b4c
Block signals except during the event loop.  Closes:#692233.

Previously we would interrupt whatever we were doing, willy-nilly.
Now we wait until the event loop is reentered.  Symptoms could include
locking up the server with a grab, and/or spinning on the cpu.

This patch is not very portable (it uses ppoll) but I think it will
work on all Debian architectures.

In the longer term we should update to new upstream, where the last
commits were in 2013.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
events.c
events.h
twm.c