Commit 8883866c authored by chenhaowen's avatar chenhaowen

fix: flush log file before exit auth

parent 64091d87
...@@ -325,6 +325,7 @@ HEART_BEAT_START: ...@@ -325,6 +325,7 @@ HEART_BEAT_START:
int exit_auth(void) int exit_auth(void)
{ {
fprintf(drcom_config.log_file, "gdut-drcom heart-beat exiting!\r\n"); fprintf(drcom_config.log_file, "gdut-drcom heart-beat exiting!\r\n");
fflush(drcom_config.log_file);
drcom_config.exit = 1; drcom_config.exit = 1;
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment