aboutsummaryrefslogtreecommitdiff
path: root/trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace.c')
-rw-r--r--trace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace.c b/trace.c
index 4efb256fa..083eb984e 100644
--- a/trace.c
+++ b/trace.c
@@ -134,6 +134,7 @@ static void trace_write(struct trace_key *key, const void *buf, unsigned len)
normalize_trace_key(&key);
warning("unable to write trace for %s: %s",
key->key, strerror(errno));
+ trace_disable(key);
}
}