Merge pull request #324 from wooparadog/master

Set 0 buffer for stdout
This commit is contained in:
pixl 2023-05-08 15:33:14 -04:00 committed by GitHub
commit be840b333a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);