diff -ru gnome-vfs-2.2.1-DenyOfService/modules/file-method.c gnome-vfs-2.2.1/modules/file-method.c --- gnome-vfs-2.2.1-DenyOfService/modules/file-method.c 2003-03-11 02:16:10.000000000 +0100 +++ gnome-vfs-2.2.1/modules/file-method.c 2003-03-11 02:27:17.000000000 +0100 @@ -2165,7 +2165,29 @@ if (fam_connection == NULL) { fam_connection = g_malloc0(sizeof(FAMConnection)); if (FAMOpen2(fam_connection, "test-monitor") != 0) { - g_print ("FAMOpen failed, FAMErrno=%d\n", FAMErrno); + /* Throttle error message propagation. Without this step + * logfiles would bomb each machine within short time. + * Code is kind of bloaty. Users hate it getting bombed out + * of their machines. + */ + static time_t last_message = 0; + static int last_error = 0; + int current_error = FAMErrno; + + if (time() - last_message > 180 || + current_error != last_error) + { + last_message = time(); + last_error = current_error; + + g_print ("FAMOpen failed, FAMErrno=%d\n" + "This indicates a problem with the " + "File Alteration Monitor (FAM).\n" + "Make sure that FAM is installed " + "properly and lauched on startup.\n", + current_error); + } + g_free(fam_connection); fam_connection = NULL; G_UNLOCK (fam_connection);