And if you use a lock, SIGUSR2 will need to be blocked before locking so the handler won't deadlock if the signal is delivered to a thread while it holds the lock. Or it may be possible to just have the drawing code block SIGUSR2 to prevent a vt switch (if that works), and have the signal handler set or clear a volatile indicating whether drawing is allowed or not. I'm not sure how the vt switching and signals work together, but I'm sure someone knows.
-- Race with drawing vs. vt switching https://bugs.launchpad.net/bugs/183671 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
