AC_PREREQ([2.68])
-AC_INIT([nitra-corewatcher],[0.9.7],[timothy.c.pepper@linux.intel.com])
+AC_INIT([nitra-corewatcher],[0.9.8],[timothy.c.pepper@linux.intel.com])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_CONFIG_SRCDIR([src/corewatcher.c])
* If the system seems to generally work well, this time could be
* extended quite a bit longer probably.
*/
- g_timeout_add_seconds(60, scan_folders, NULL);
+ g_timeout_add_seconds(900, scan_folders, NULL);
g_main_loop_run(loop);
out:
curl_easy_setopt(handle, CURLOPT_NOBODY, 1);
curl_easy_setopt(handle, CURLOPT_TIMEOUT, 5);
- sentcount = 0;
- failcount = 0;
-
/* try to find a good url (curl automagically will use config'd proxies */
for (i = 0; i < url_count; i++) {
+ sentcount = 0;
+ failcount = 0;
+
curl_easy_setopt(handle, CURLOPT_URL, submit_url[i]);
/* check the connection before POSTing form */
fprintf(stderr, "+ unable to contact %s\n", submit_url[i]);
continue;
}
+ fprintf(stderr, "+ Draining work_list to %s\n", submit_url[i]);
- /* have a good url/proxy now...send reports there */
+ /* have a good url/proxy now...attempt sending all reports there */
while (work_list) {
oops = work_list;
work_list = oops->next;
if (failcount)
syslog(LOG_WARNING, "Failed to send %d coredump signatures to %s", failcount, submit_url[i]);
closelog();
+
+ break;
}
if (work_list) {
- work_list->next = requeue_list;
+ fprintf(stderr, "+ No urls worked, requeueing all work\n");
requeue_list = work_list;
}