diff options
author | Alessandro Da Rugna <alessandro.darugna@gmail.com> | 2017-10-29 21:02:33 +0100 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-10-29 21:05:57 +0100 |
commit | cb3fc22ac1a95eda0843aa641720b52063c3b74c (patch) | |
tree | 66b40a4d012166c1476e2840c35ec0e404f366c6 /xmrstak/config.tpl | |
parent | a7fb89bec2b88cc694bf88aed729451bb9bdd8a0 (diff) | |
download | xmr-stak-cb3fc22ac1a95eda0843aa641720b52063c3b74c.zip xmr-stak-cb3fc22ac1a95eda0843aa641720b52063c3b74c.tar.gz |
add option: flush stdout
Added the option to forcefully flush STDOUT, which may be useful when running the miner through a pipe instead than a shell.
If STDOUT is a shell, it's unbuffered by default.
If STDOUT is a pipe, it's buffered by default.
Diffstat (limited to 'xmrstak/config.tpl')
-rw-r--r-- | xmrstak/config.tpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/xmrstak/config.tpl b/xmrstak/config.tpl index 032d483..3308354 100644 --- a/xmrstak/config.tpl +++ b/xmrstak/config.tpl @@ -140,6 +140,14 @@ R"===( "daemon_mode" : false, /* + * Buffered output control. + * When running the miner through a pipe, standard output is buffered. This means that the pipe won't read + * each output line immediately. This can cause delays when running in background. + * Set this option to true to flush stdout after each line, so it can be read immediately. + */ + "flush_stdout" : false, + +/* * Output file * * output_file - This option will log all output to a file. |