fatal error when a slot cannot be found
Costa Tsaousis (ktsaou) committed
Mar 27, 2015 at 23:16 UTC
07a21acd4c93dcc8a4e1c8f522bacb59e9b46a42
1 file changed
+2
-2
src/plugins.d/apps_plugin.c
+2
-2
@@ -643,8 +643,8 @@ unsigned long file_descriptor_find_or_add(const char *name)
643
}
644
}
645
if(i == all_files_size) {
646
- error("We should find an empty slot, but there isn't any");
647
- return 0;
646
+ fatal("We should find an empty slot, but there isn't any");
647
+ exit(1);
648
}
649
if(debug) fprintf(stderr, "apps.plugin: >> updating slot %d.\n", c);
650