diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2004-08-14 03:20:01 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2004-08-14 03:20:01 +0000 |
commit | 5c0293953382f8a85311c623ed18707f48bd7853 (patch) | |
tree | 2c5e1c41b94e7b4270500d1a7e76be5d90542d0f /src | |
parent | c5307363beab9eecaff610c9cba7df7b783414a3 (diff) | |
download | tinyproxy-5c0293953382f8a85311c623ed18707f48bd7853.tar.gz tinyproxy-5c0293953382f8a85311c623ed18707f48bd7853.zip |
(log_message): Added a fsync() call after each line outputted to the
log file.
Diffstat (limited to '')
-rw-r--r-- | src/log.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: log.c,v 1.28 2004-02-13 21:27:42 rjkaes Exp $ +/* $Id: log.c,v 1.29 2004-08-14 03:20:01 rjkaes Exp $ * * Logs the various messages which tinyproxy produces to either a log file or * the syslog daemon. Not much to it... @@ -180,6 +180,7 @@ log_message(int level, char *fmt, ...) vsnprintf(str, STRING_LENGTH, fmt, args); write(log_file_fd, str, strlen(str)); write(log_file_fd, "\n", 1); + fsync(log_file_fd); #ifdef HAVE_SYSLOG_H } |