Commit 6be80975 authored by Mike Hibler's avatar Mike Hibler
Browse files

Don't ignore MODIFY events that happen without a START event. Just print

the warning and update the info we are given, the other fields will use
the default until otherwise set.

Reset the logfile on a RESET event.
parent 7ebc0ef9
......@@ -489,8 +489,9 @@ callback(event_handle_t handle, event_notification_t notification, void *data)
else if (strcmp(buf[6], MODIFYEVENT) == 0) {
if (!startdone)
fprintf(stderr, "MODIFY without START event\n");
else if (parse_args(buf[7], tg_first) != 0)
fprintf(stderr, "WARNING: "
"MODIFY without initial START event\n");
if (parse_args(buf[7], tg_first) != 0)
fprintf(stderr, "MODIFY invalid params\n");
else {
......@@ -585,6 +586,16 @@ tgevent_loop(void)
actions[0].tg_flags = TG_SETUP;
actions[0].next = &actions[1];
actions[1].tg_flags = TG_WAIT;
* Restart the log
if (logfile) {
extern int FlushOutput;
FlushOutput = 1;
start_log(now, "%s");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment