1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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 :-)
This commit is contained in:
Simon Tatham 2017-11-27 20:18:23 +00:00
parent 4b8baed84a
commit 032a9da179

View File

@ -2085,7 +2085,7 @@ void frontend_keypress(void *handle)
* any keypress. * any keypress.
*/ */
if (inst->exited) if (inst->exited)
cleanup_exit(0); gtk_widget_destroy(inst->window);
} }
static void exit_callback(void *vinst) static void exit_callback(void *vinst)