From a63fcb8d13b1c600b4a45c47843f83536ecc9aa0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 29 Jul 2008 16:57:06 +0000 Subject: [PATCH] Switched from ANSI C stdio to Unix I/O in order to avoid that the I/O statements trigger any locking. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8475 --- drd/tests/linuxthreads_det.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drd/tests/linuxthreads_det.c b/drd/tests/linuxthreads_det.c index d9cb0854e0..c589cb1d78 100644 --- a/drd/tests/linuxthreads_det.c +++ b/drd/tests/linuxthreads_det.c @@ -5,7 +5,6 @@ #include #include -#include #include @@ -17,11 +16,11 @@ void* thread_func(void* arg) { if (s_main_thread_pid == getpid()) { - printf("NPTL or non-Linux POSIX threads implementation detected.\n"); + write(STDOUT_FILENO, "NPTL or non-Linux POSIX threads implementation detected.\n", 57); } else { - printf("Detected LinuxThreads as POSIX threads implemenentation.\n"); + write(STDOUT_FILENO, "Detected LinuxThreads as POSIX threads implementation.\n", 55); } sem_post(&s_sem); return 0; -- 2.47.2