Skip to content

Commit

Permalink
Merge pull request PixlOne#324 from wooparadog/master
Browse files Browse the repository at this point in the history
Set 0 buffer for stdout
  • Loading branch information
PixlOne authored May 8, 2023
2 parents 3fb18a7 + 99716cb commit be840b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/logid/logid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit be840b3

Please sign in to comment.