Commit 04cf2d75 authored by Kjartan Maraas's avatar Kjartan Maraas Committed by Kjartan Maraas

Clean up utmp/wtmp under vncserver if things fall apart under the

2005-08-05  Kjartan Maraas  <kmaraas@gnome.org>

	* gnome-pty-helper/gnome-pty-helper.c: (exit_handler), (main):
	Clean up utmp/wtmp under vncserver if things fall apart under
	the terminal. (Dave Lehman). Closes bug #312373
parent 9996a036
2005-08-05 Kjartan Maraas <kmaraas@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c: (exit_handler), (main):
Clean up utmp/wtmp under vncserver if things fall apart under
the terminal. (Dave Lehman). Closes bug #312373
2005-07-26 Michele Baldessari <michele@pupazzo.org>
* python/vte.override (_wrap_vte_terminal_set_colors):
......
......@@ -654,6 +654,14 @@ sanity_checks (void)
}
}
static void
exit_handler (int signum)
{
shutdown_helper ();
_exit (1);
}
int
main (int argc, char *argv [])
{
......@@ -675,6 +683,9 @@ main (int argc, char *argv [])
if (!display_name)
display_name = "localhost";
/* Make sure we clean up utmp/wtmp even under vncserver */
signal (SIGHUP, exit_handler);
signal (SIGTERM, exit_handler);
if (init_msg_pass () == -1)
exit (1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment