From daf1eff13c5583770ed4a8e7a399924b1e208845 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 26 Feb 2012 00:46:19 +1100 Subject: [PATCH] Change failed-to-mine number of requested shares messge to avoid segfault on recursive calling of quit(). --- cgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 37c91af4..d48f7cbe 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4000,7 +4000,7 @@ static void print_summary(void) fflush(stdout); fflush(stderr); if (opt_shares > total_accepted) - quit(1, "Did not successfully mine as many shares as were requested."); + applog(LOG_WARNING, "WARNING - Mined only %d shares of %d requested.", total_accepted, opt_shares); } static void clean_up(void)