Make sure we do notify_remote_exit(ssh->frontend) _before_
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Mar 2005 17:56:28 +0000 (17:56 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 5 Mar 2005 17:56:28 +0000 (17:56 +0000)
commit2425184bb0dd4cf3924f717c0b07c2ca6e7da4e6
treeedc604e2ab6d8ea6a5664d154eb9cd01a76efe46
parent89adc0e26d9020cfbe23fd4b0eec5ff33055a694
Make sure we do notify_remote_exit(ssh->frontend) _before_
connection_fatal(), since the latter is entitled to destroy the
backend so `ssh' may no longer be valid once it returns.

For the Unix port, switch exit(0) to gtk_main_quit() in
notify_remote_exit(), so that we don't exit before the subsequent
connection_fatal()!

git-svn-id: svn://svn.tartarus.org/sgt/putty@5445 cda61777-01e9-0310-a592-d414129be87e
ssh.c
unix/gtkwin.c