Commit 227903b4 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(dump_connections): Call fflush() and ferror(). This might help track

	down spurious errors from the rename that I don't understand.
parent 0feec80d
/* /*
* $Id: connections.c,v 0.85 2002/10/27 23:02:52 ceder Exp $ * $Id: connections.c,v 0.86 2002/10/28 09:13:24 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association. * Copyright (C) 1991-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -567,6 +567,12 @@ dump_connections(void) ...@@ -567,6 +567,12 @@ dump_connections(void)
conn->peer); conn->peer);
} }
if (fflush(fp) != 0)
kom_log("dump_connections(): fflush() says an error has occured.\n");
if (ferror(fp))
kom_log("dump_connections(): ferror() says an error has occured.\n");
if (fclose(fp) < 0) if (fclose(fp) < 0)
{ {
kom_log("dump_connections(): fclose failed: %s (ignored)\n", kom_log("dump_connections(): fclose failed: %s (ignored)\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment