Commit d8af1d72 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: don't use dprintf, because it's not thread safe

pthread00 hangs if dprintf is used, and works well if fprintf is used.

One more mention of this bug is here:
http://sourceware.org/bugzilla/show_bug.cgi?id=12847Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9ec01ff3
...@@ -56,5 +56,5 @@ void test_msg(const char *format, ...) ...@@ -56,5 +56,5 @@ void test_msg(const char *format, ...)
len = vsnprintf(buf + off, sizeof(buf) - off, format, arg); len = vsnprintf(buf + off, sizeof(buf) - off, format, arg);
va_end(arg); va_end(arg);
dprintf(STDERR_FILENO, buf); fprintf(stderr, buf);
} }
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