From f836bd41c08952d27917977049e188347b4383c6 Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 18 Jun 2006 00:04:06 +1000 Subject: [PATCH] Write commant at beginning of .fishd file mentioning that the file should not be edited darcs-hash:20060617140406-ac50b-c3987895fbc747212a70618acf8a18b42601e8a8.gz --- fishd.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fishd.c b/fishd.c index 9f48af36c..91fc73c95 100644 --- a/fishd.c +++ b/fishd.c @@ -88,7 +88,9 @@ time the original barrier request was sent have been received. /** Small greeting to show that fishd is running */ -#define GREETING "#Fish universal variable daemon\n" +#define GREETING "# Fish universal variable daemon\n" + +#define SAVE_MSG "# This file is automatically generated by the fishd universal variable daemon.\n# Do NOT edit it directly, your changes will be overwritten.\n" /** The name of the save file. The hostname is appended to this. @@ -426,7 +428,11 @@ void load_or_save( int save) q_init( &c.unsent ); if( save ) + { + + write( c.fd, SAVE_MSG, strlen(SAVE_MSG) ); enqueue_all( &c ); + } else read_message( &c );