Skip to content

Commit af59ef1

Browse files
committed
Added comment regarding open_logfile_obj() line state re-initialization.
1 parent d25d81b commit af59ef1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

server-logfile.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*****************************************************************************\
2-
* $Id: server-logfile.c,v 1.11.2.6 2003/10/04 02:00:22 dun Exp $
2+
* $Id: server-logfile.c,v 1.11.2.7 2003/10/07 23:11:09 dun Exp $
33
*****************************************************************************
44
* Copyright (C) 2001-2002 The Regents of the University of California.
55
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
@@ -164,7 +164,11 @@ int open_logfile_obj(obj_t *logfile, int gotTrunc)
164164
write_obj_data(logfile, msg, strlen(msg), 0);
165165
free(now);
166166
free(msg);
167-
167+
/*
168+
* Since the above console log message is not marked "informational",
169+
* the test in write_obj_data() to re-init the line state will not
170+
* be triggered. Thusly, we re-initialize the line state here.
171+
*/
168172
logfile->aux.logfile.lineState = CONMAN_LOG_LINE_INIT;
169173

170174
DPRINTF((10, "Opened %s%slogfile \"%s\" for console [%s].\n",

0 commit comments

Comments
 (0)