Commit 0bb7f624 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(sync_part): Send a broadcast message to everyone if the save failed.

	Patch from Daniel Andersson, slightly edited.  (Bug 813).
parent d5aa396f
/*
* $Id: simple-cache.c,v 0.97 2002/09/06 22:43:08 ceder Exp $
* $Id: simple-cache.c,v 0.98 2002/10/04 23:39:47 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -2388,6 +2388,16 @@ sync_part(void)
}
#endif
remove(param.datafile_name);
/* Send a message to all clients if we fail to save the database. */
async_send_message(
0, 0,
s_fcrea_str(
"A serious error occurred while saving the database. Tell\n"
"the administrator to check the server. This could be caused\n"
"by insufficient disc space."),
FALSE);
sync_state = sync_wait;
break;
......
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