From a1f8f285b2e823de7067b78105ce8f0e45d45c5c Mon Sep 17 00:00:00 2001 From: William Douglas Date: Wed, 3 Aug 2011 16:05:11 -0700 Subject: [PATCH] Rename coredump scan function. Doing this rename for clarity since scan_dmesg doesn't scan dmesg and the kernel oops code actually does so it will take that name. Signed-off-by: William Douglas --- src/coredump.c | 2 +- src/corewatcher.c | 4 ++-- src/corewatcher.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/coredump.c b/src/coredump.c index ead3407..1cdb044 100644 --- a/src/coredump.c +++ b/src/coredump.c @@ -1160,7 +1160,7 @@ static void reprocess_corefile(char *fullpath) 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; diff --git a/src/corewatcher.c b/src/corewatcher.c index 5f5175e..65501cf 100644 --- a/src/corewatcher.c +++ b/src/corewatcher.c @@ -307,7 +307,7 @@ int main(int argc, char**argv) 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) { @@ -328,7 +328,7 @@ int main(int argc, char**argv) /* 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); diff --git a/src/corewatcher.h b/src/corewatcher.h index b836746..623f5ee 100644 --- a/src/corewatcher.h +++ b/src/corewatcher.h @@ -74,7 +74,7 @@ extern char *replace_name(char *filename, char *replace, char *new); /* 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); -- 2.7.4