From: ben Date: Sun, 12 Jan 2003 14:45:33 +0000 (+0000) Subject: Call ot_poll as appropriate. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/04b0fa02653b8036135a60dddcb35fdc2cd33bbd Call ot_poll as appropriate. Also use cleanup_exit() in preference to exit() so that MacTCP gets shut down even on unclean exits. git-svn-id: svn://svn.tartarus.org/sgt/putty@2560 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mac/mac.c b/mac/mac.c index 76ba435a..ffc3fe05 100644 --- a/mac/mac.c +++ b/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 * All rights reserved. @@ -240,6 +240,8 @@ static void mac_eventloop(void) { mac_event(&event); if (mac_gestalts.mtcpvers != 0) mactcp_poll(); + if (mac_gestalts.otptattr != 0) + ot_poll(); mac_pollterm(); } DisposeRgn(cursrgn); @@ -645,7 +647,7 @@ void fatalbox(char *fmt, ...) { va_end(ap); ParamText(stuff, NULL, NULL, NULL); StopAlert(128, NULL); - exit(1); + cleanup_exit(1); } void modalfatalbox(char *fmt, ...) { @@ -658,7 +660,7 @@ void modalfatalbox(char *fmt, ...) { va_end(ap); ParamText(stuff, NULL, NULL, NULL); StopAlert(128, NULL); - exit(1); + cleanup_exit(1); } /* 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); ParamText(stuff, NULL, NULL, NULL); StopAlert(128, NULL); - exit(1); + cleanup_exit(1); } /* Null SSH agent client -- never finds an agent. */