suspended X -> dead console

Alexander V. Lukyanov (lav@yars.free.net)
Mon, 16 Aug 1999 20:47:46 +0400


One user has hit this occasionally:

1. startx
2. switch back to text console from which startx was executed
3. ^Z (X suspends)
4. Alt-F7 (to the console where X lives)

console is dead at this point (2.2.11). kill -CONT over net helped it.

Would something like this patch be useful? (completely untested yet)
--- vt.c Thu Jul 22 18:34:18 1999
+++ vt.c Mon Aug 16 20:43:55 1999
@@ -1235,6 +1235,9 @@
*/
if (vt_cons[fg_console]->vt_mode.mode == VT_PROCESS)
{
+ /* first try to un-suspend the process */
+ kill_proc(vt_cons[fg_console]->vt_pid, SIGCONT);
+
/*
* Send the signal as privileged - kill_proc() will
* tell us if the process has gone or something else

-- 
   Alexander.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/