Ensure our network layer is properly cleaned up before PuTTY exits.
[u/mdw/putty] / pageant.c
index 12e03a8..c4eef55 100644 (file)
--- a/pageant.c
+++ b/pageant.c
@@ -1658,6 +1658,8 @@ void spawn_cmd(char *cmdline, char * args, int show)
     }
 }
 
+void cleanup_exit(int code) { exit(code); }
+
 int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
 {
     WNDCLASS wndclass;