Bug 23595 - Race allows ctrl+C during vt switch (discovered during system suspend)
Summary: Race allows ctrl+C during vt switch (discovered during system suspend)
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-30 09:35 UTC by Alan Jenkins
Modified: 2018-06-12 18:43 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alan Jenkins 2009-08-30 09:35:42 UTC
Observed behaviour:

ctrl+alt+f1; ctrl+c kills the X server
Or if you're already on a text console, ctrl+alt+f7; ctrl+c will do the same.

(If your fingers are slower than X's mode switch, try using a delayed chvt).

At least on linux, the system switches to a text console before suspending.  I discovered the problem by pressing ctrl+c during this console switch.

This could be very annoying if your system suspended automatically at the wrong time, e.g. because your battery is about to run out.

I would like to see this behavior changed.  I guess the problem is a gap between when X relinquishes control of input devices, and the actual VT switch.  Perhaps X should do the equivalent of "stty -isig" during initialisation.
Comment 1 Adam Jackson 2018-06-12 18:43:43 UTC
Mass closure: This bug has been untouched for more than six years, and is not obviously still valid. Please file a new report if you continue to experience issues with a current server.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.