mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Prevent network errors from summarily closing the window when CoE is off
[originally from svn r613]
This commit is contained in:
10
plink.c
10
plink.c
@ -20,6 +20,16 @@ void fatalbox (char *p, ...) {
|
||||
WSACleanup();
|
||||
exit(1);
|
||||
}
|
||||
void connection_fatal (char *p, ...) {
|
||||
va_list ap;
|
||||
fprintf(stderr, "FATAL ERROR: ", p);
|
||||
va_start(ap, p);
|
||||
vfprintf(stderr, p, ap);
|
||||
va_end(ap);
|
||||
fputc('\n', stderr);
|
||||
WSACleanup();
|
||||
exit(1);
|
||||
}
|
||||
|
||||
HANDLE outhandle;
|
||||
|
||||
|
Reference in New Issue
Block a user