Commit 98ba6e47 authored by Rusty Russell's avatar Rusty Russell

failtest: fix tracepath bug.

Aborts on a short write with --tracepath.
parent 5eaf46e9
......@@ -219,7 +219,7 @@ static void trace_str(const char *str)
{
ssize_t ret;
while ((ret = write(tracefd, str, strlen(str))) <= 0) {
while ((ret = write(tracefd, str, strlen(str))) > 0) {
str += ret;
if (!*str)
return;
......
Markdown is supported
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