mirror of
https://github.com/PixlOne/logiops.git
synced 2025-07-14 05:12:34 +08:00
Set 0 buffer for stdout
So that journald can follow its logs
This commit is contained in:
parent
3fb18a7d5f
commit
99716cbd99
@ -135,6 +135,12 @@ int main(int argc, char** argv) {
|
||||
std::shared_ptr<Configuration> config;
|
||||
std::shared_ptr<InputDevice> virtual_input;
|
||||
|
||||
|
||||
/* Set stdout buff to Null so that loging system like journal
|
||||
* can actually read it.
|
||||
*/
|
||||
setbuf(stdout, NULL);
|
||||
|
||||
// Read config
|
||||
try {
|
||||
config = std::make_shared<Configuration>(options.config_file);
|
||||
|
Loading…
Reference in New Issue
Block a user