|
@@ -3633,14 +3633,14 @@ const
|
|
|
#endif
|
|
#endif
|
|
|
char **initial_args;
|
|
char **initial_args;
|
|
|
|
|
|
|
|
-static void clean_up(void);
|
|
|
|
|
|
|
+void _bfg_clean_up(void);
|
|
|
|
|
|
|
|
void app_restart(void)
|
|
void app_restart(void)
|
|
|
{
|
|
{
|
|
|
applog(LOG_WARNING, "Attempting to restart %s", packagename);
|
|
applog(LOG_WARNING, "Attempting to restart %s", packagename);
|
|
|
|
|
|
|
|
__kill_work();
|
|
__kill_work();
|
|
|
- clean_up();
|
|
|
|
|
|
|
+ _bfg_clean_up();
|
|
|
|
|
|
|
|
#if defined(unix) || defined(__APPLE__)
|
|
#if defined(unix) || defined(__APPLE__)
|
|
|
if (forkpid > 0) {
|
|
if (forkpid > 0) {
|
|
@@ -8162,7 +8162,7 @@ void print_summary(void)
|
|
|
fflush(stdout);
|
|
fflush(stdout);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-static void clean_up(void)
|
|
|
|
|
|
|
+void _bfg_clean_up(void)
|
|
|
{
|
|
{
|
|
|
#ifdef HAVE_OPENCL
|
|
#ifdef HAVE_OPENCL
|
|
|
clear_adl(nDevs);
|
|
clear_adl(nDevs);
|
|
@@ -8186,8 +8186,6 @@ static void clean_up(void)
|
|
|
|
|
|
|
|
void _quit(int status)
|
|
void _quit(int status)
|
|
|
{
|
|
{
|
|
|
- clean_up();
|
|
|
|
|
-
|
|
|
|
|
if (status) {
|
|
if (status) {
|
|
|
const char *ev = getenv("__BFGMINER_SEGFAULT_ERRQUIT");
|
|
const char *ev = getenv("__BFGMINER_SEGFAULT_ERRQUIT");
|
|
|
if (unlikely(ev && ev[0] && ev[0] != '0')) {
|
|
if (unlikely(ev && ev[0] && ev[0] != '0')) {
|