From 032a9da179082bafa4c16eb6b0c06b02b20cd275 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 27 Nov 2017 20:18:23 +0000 Subject: [PATCH] Remove one last stray process exit(). This one's in frontend_keypress(), which is supposed to close the window on the first keypress after the session inside it terminates (that is, if your close-on-exit settings haven't made it close already at that point). It looks to me as if that behaviour doesn't currently _work_, and hasn't worked for quite a while (certainly it was broken as of 0.70, well before I started on this weekend's refactoring), because when the session terminates we delete inst->ldisc and that's what would otherwise be calling frontend_keypress. I should probably decide what to do about that at some point. But for the moment, I'm satisfied to simply not break this functionality any worse by making it not a process-global exit :-) --- unix/gtkwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index a427b20a..2ed7fffe 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -2085,7 +2085,7 @@ void frontend_keypress(void *handle) * any keypress. */ if (inst->exited) - cleanup_exit(0); + gtk_widget_destroy(inst->window); } static void exit_callback(void *vinst)