mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Call ot_poll as appropriate.
Also use cleanup_exit() in preference to exit() so that MacTCP gets shut down even on unclean exits. [originally from svn r2560]
This commit is contained in:
parent
80c29aa16f
commit
cf2bcad348
10
mac/mac.c
10
mac/mac.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: mac.c,v 1.25 2003/01/11 23:33:57 ben Exp $ */
|
/* $Id: mac.c,v 1.26 2003/01/12 14:45:33 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Ben Harris
|
* Copyright (c) 1999 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -240,6 +240,8 @@ static void mac_eventloop(void) {
|
|||||||
mac_event(&event);
|
mac_event(&event);
|
||||||
if (mac_gestalts.mtcpvers != 0)
|
if (mac_gestalts.mtcpvers != 0)
|
||||||
mactcp_poll();
|
mactcp_poll();
|
||||||
|
if (mac_gestalts.otptattr != 0)
|
||||||
|
ot_poll();
|
||||||
mac_pollterm();
|
mac_pollterm();
|
||||||
}
|
}
|
||||||
DisposeRgn(cursrgn);
|
DisposeRgn(cursrgn);
|
||||||
@ -645,7 +647,7 @@ void fatalbox(char *fmt, ...) {
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
ParamText(stuff, NULL, NULL, NULL);
|
ParamText(stuff, NULL, NULL, NULL);
|
||||||
StopAlert(128, NULL);
|
StopAlert(128, NULL);
|
||||||
exit(1);
|
cleanup_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void modalfatalbox(char *fmt, ...) {
|
void modalfatalbox(char *fmt, ...) {
|
||||||
@ -658,7 +660,7 @@ void modalfatalbox(char *fmt, ...) {
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
ParamText(stuff, NULL, NULL, NULL);
|
ParamText(stuff, NULL, NULL, NULL);
|
||||||
StopAlert(128, NULL);
|
StopAlert(128, NULL);
|
||||||
exit(1);
|
cleanup_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This should only kill the current session, not the whole application. */
|
/* This should only kill the current session, not the whole application. */
|
||||||
@ -672,7 +674,7 @@ void connection_fatal(void *fontend, char *fmt, ...) {
|
|||||||
va_end(ap);
|
va_end(ap);
|
||||||
ParamText(stuff, NULL, NULL, NULL);
|
ParamText(stuff, NULL, NULL, NULL);
|
||||||
StopAlert(128, NULL);
|
StopAlert(128, NULL);
|
||||||
exit(1);
|
cleanup_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Null SSH agent client -- never finds an agent. */
|
/* Null SSH agent client -- never finds an agent. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user