projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Install tinc as a service under Windows (MinGW). Remove cleanup_and_exit(),
[tinc]
/
src
/
logger.c
diff --git
a/src/logger.c
b/src/logger.c
index
f85bd15
..
2421464
100644
(file)
--- a/
src/logger.c
+++ b/
src/logger.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: logger.c,v 1.1.2.
8 2003/07/29 22:59:00
guus Exp $
+ $Id: logger.c,v 1.1.2.
9 2003/08/02 20:50:38
guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-71,6
+71,7
@@
void logger(int priority, const char *format, ...) {
fprintf(logfile, "%ld %s[%d]: ", time(NULL), logident, logpid);
vfprintf(logfile, format, ap);
fprintf(logfile, "\n");
fprintf(logfile, "%ld %s[%d]: ", time(NULL), logident, logpid);
vfprintf(logfile, format, ap);
fprintf(logfile, "\n");
+ fflush(logfile);
break;
case LOGMODE_SYSLOG:
#ifdef HAVE_SYSLOG_H
break;
case LOGMODE_SYSLOG:
#ifdef HAVE_SYSLOG_H