fprintf(stderr, "Couldn't start up gdb extract core thread\n");
}
-int scan_dmesg(void __unused *unused)
+int scan_corefolders(void __unused *unused)
{
DIR *dir = NULL;
struct dirent *entry = NULL;
sleep(20);
/* we scan dmesg before /var/log/messages; dmesg is a more accurate source normally */
- scan_dmesg(NULL);
+ scan_corefolders(NULL);
/* during boot... don't go too fast and slow the system down */
if (testmode) {
/* now, start polling for oopses to occur */
- g_timeout_add_seconds(10, scan_dmesg, NULL);
+ g_timeout_add_seconds(10, scan_corefolders, NULL);
g_main_loop_run(loop);
dbus_bus_remove_match(bus, "type='signal',interface='org.corewatcher.submit.ping'", &error);
/* coredump.c */
extern int move_core(char *fullpath, char *ext);
-extern int scan_dmesg(void * unused);
+extern int scan_corefolders(void * unused);
extern char *strip_directories(char *fullpath);
extern char *get_core_filename(char *filename, char *ext);
extern void remove_pid_from_hash(char *fullpath, GHashTable *ht);