mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 03:24:26 +00:00
Disable --monitor-stderr on WIN32
This commit is contained in:
parent
467c52bb4a
commit
1cbfcba2c1
7
main.c
7
main.c
@ -598,9 +598,12 @@ static struct opt_table opt_config_table[] = {
|
|||||||
"Use system log for output messages (default: standard error)"),
|
"Use system log for output messages (default: standard error)"),
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
OPT_WITH_ARG("--monitor|-m",
|
OPT_WITH_ARG("--monitor|-m",
|
||||||
opt_set_charp, NULL, &opt_stderr_cmd,
|
opt_set_charp, NULL, &opt_stderr_cmd,
|
||||||
"Use custom pipe cmd for output messages"),
|
"Use custom pipe cmd for output messages"),
|
||||||
|
#endif // !WIN32
|
||||||
|
|
||||||
OPT_WITHOUT_ARG("--text-only|-T",
|
OPT_WITHOUT_ARG("--text-only|-T",
|
||||||
opt_set_invbool, &use_curses,
|
opt_set_invbool, &use_curses,
|
||||||
"Disable ncurses formatted screen output"),
|
"Disable ncurses formatted screen output"),
|
||||||
@ -3709,6 +3712,7 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
static void fork_monitor()
|
static void fork_monitor()
|
||||||
{
|
{
|
||||||
// Make a pipe: [readFD, writeFD]
|
// Make a pipe: [readFD, writeFD]
|
||||||
@ -3773,6 +3777,7 @@ static void fork_monitor()
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // !WIN32
|
||||||
|
|
||||||
int main (int argc, char *argv[])
|
int main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
@ -3927,8 +3932,10 @@ int main (int argc, char *argv[])
|
|||||||
openlog(PROGRAM_NAME, LOG_PID, LOG_USER);
|
openlog(PROGRAM_NAME, LOG_PID, LOG_USER);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(WIN32)
|
||||||
if (opt_stderr_cmd)
|
if (opt_stderr_cmd)
|
||||||
fork_monitor();
|
fork_monitor();
|
||||||
|
#endif // !WIN32
|
||||||
|
|
||||||
mining_threads = opt_n_threads + gpu_threads;
|
mining_threads = opt_n_threads + gpu_threads;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user