session termination. `Close window only on clean exit' was not
working properly on Unix in the absence of this:
notify_remote_exit() was being called and ssh_return_exitcode was
returning zero, causing gtk_main_quit() to be called, _before_
connection_fatal() happened.
git-svn-id: svn://svn.tartarus.org/sgt/putty@6801
cda61777-01e9-0310-a592-
d414129be87e
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
+#include <limits.h>
#include "putty.h"
#include "tree234.h"
if (ssh->s != NULL)
return -1;
else
- return (ssh->exitcode >= 0 ? ssh->exitcode : 0);
+ return (ssh->exitcode >= 0 ? ssh->exitcode : INT_MAX);
}
/*