X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/0aa741089ec49599d920f9e427924ee054323339..33f4bde27b629068d4a17ca54d67ac54fc70c10c:/unix/uxplink.c diff --git a/unix/uxplink.c b/unix/uxplink.c index 560ec386..9e10c488 100644 --- a/unix/uxplink.c +++ b/unix/uxplink.c @@ -63,6 +63,22 @@ void modalfatalbox(char *p, ...) } cleanup_exit(1); } +void nonfatal(char *p, ...) +{ + struct termios cf; + va_list ap; + premsg(&cf); + fprintf(stderr, "ERROR: "); + va_start(ap, p); + vfprintf(stderr, p, ap); + va_end(ap); + fputc('\n', stderr); + postmsg(&cf); + if (logctx) { + log_free(logctx); + logctx = NULL; + } +} void connection_fatal(void *frontend, char *p, ...) { struct termios cf;