Merge pull request #106 from akuker/stdout-buffering-fix

Stdout buffering fix
This commit is contained in:
akuker 2021-06-01 20:05:50 -05:00 committed by GitHub
commit 641130c4d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1121,6 +1121,8 @@ int main(int argc, char* argv[])
DWORD now;
BUS::phase_t phase;
BYTE data;
// added setvbuf to override stdout buffering, so logs are written immediately and not when the process exits.
setvbuf(stdout, NULL, _IONBF, 0);
#ifndef BAREMETAL
struct sched_param schparam;
#endif // BAREMETAL