lkml.org 
[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectsuspended X -> dead console

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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.063 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site