From e0c6851980806f2a51b37e3e37fc9a48420a4a83 Mon Sep 17 00:00:00 2001 From: "Gabriel F. T. Gomes" Date: Mon, 31 Oct 2016 22:09:12 -0200 Subject: Write messages to stdout and use write_message instead of write Replaces calls to write on file descriptor 2 with calls to write_message, which writes to STDOUT_FILENO (1) and properly deals with the return of write. --- nptl/tst-stdio1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/tst-stdio1.c') diff --git a/nptl/tst-stdio1.c b/nptl/tst-stdio1.c index 4250e53..7432261 100644 --- a/nptl/tst-stdio1.c +++ b/nptl/tst-stdio1.c @@ -43,7 +43,7 @@ do_test (void) if (pthread_create (&th, NULL, tf, NULL) != 0) { - write (2, "create failed\n", 14); + write_message ("create failed\n"); _exit (1); } -- cgit v1.1