[java-atk-wrapper] Flush log file to avoid missing anything
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [java-atk-wrapper] Flush log file to avoid missing anything
- Date: Mon, 8 Jul 2019 23:29:32 +0000 (UTC)
commit 67d97cda7abd238a52cb7dc1d8699fa00af382a8
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Tue Jul 9 01:29:27 2019 +0200
Flush log file to avoid missing anything
jni/src/jawutil.h | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/jni/src/jawutil.h b/jni/src/jawutil.h
index 2348d5b..8870101 100644
--- a/jni/src/jawutil.h
+++ b/jni/src/jawutil.h
@@ -31,6 +31,7 @@ extern FILE *log_file;
#define JAW_DEBUG(fmt, ...) do { \
if (jaw_debug) { \
fprintf(log_file, "TIME:[%lu] PID:{%d} " fmt "\n", (unsigned long) time(NULL), (int)getpid(),
##__VA_ARGS__); \
+ fflush(log_file); \
} \
} while (0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]