X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9583660004406f1b8e9296e13e6709cce510d72c..11cc5e30c81503e5769e32e75d0455b193111eec:/logging.c diff --git a/logging.c b/logging.c index f32e9cae..5302998f 100644 --- a/logging.c +++ b/logging.c @@ -35,6 +35,16 @@ void logtraffic(void *handle, unsigned char c, int logmode) } /* + * Flush any open log file. + */ +void logflush(void *handle) { + struct LogContext *ctx = (struct LogContext *)handle; + if (ctx->cfg.logtype > 0) + if (ctx->lgfp) + fflush(ctx->lgfp); +} + +/* * Log an Event Log entry. Used in SSH packet logging mode; this is * also as convenient a place as any to put the output of Event Log * entries to stderr when a command-line tool is in verbose mode.