changeset 9:dfe99a061249

smsc-daemon: fflush the log file after writing MO SM to it
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Aug 2023 15:48:08 -0800
parents 81386a48c463
children f9a83463ab52
files smsc-daemon/record_mo.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/smsc-daemon/record_mo.c	Fri Aug 25 14:56:52 2023 -0800
+++ b/smsc-daemon/record_mo.c	Fri Aug 25 15:48:08 2023 -0800
@@ -68,6 +68,7 @@
 	gsm48_decode_bcd_number2(decode_buf, sizeof decode_buf,
 				 lv_buf, sizeof lv_buf, 0);
 	fprintf(smsc_log_file, "%s\n", decode_buf[0] ? decode_buf : "<empty>");
+	fflush(smsc_log_file);
 }
 
 void record_mo_sm(struct osmo_gsup_message *gmsg)