diff mbox series

[2/2] pthreads: Use _exit to terminate the tst-stdio1 test

Message ID 7d421209287a07db5e926552ae5fbe9d8abb50dc.1686044390.git.fweimer@redhat.com
State New
Headers show
Series [1/2] support: Add delayed__exit (with two underscores) | expand

Commit Message

Florian Weimer June 6, 2023, 9:40 a.m. UTC
Previously, the exit function was used, but this causes the test to
block (until the timeout) once exit is changed to lock stdio streams
during flush.
---
 sysdeps/pthread/tst-stdio1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andreas Schwab June 6, 2023, 11:14 a.m. UTC | #1
On Jun 06 2023, Florian Weimer via Libc-alpha wrote:

> Previously, the exit function was used, but this causes the test to
> block (until the timeout) once exit is changed to lock stdio streams
> during flush.

Ok.
diff mbox series

Patch

diff --git a/sysdeps/pthread/tst-stdio1.c b/sysdeps/pthread/tst-stdio1.c
index 1266181505..b198576319 100644
--- a/sysdeps/pthread/tst-stdio1.c
+++ b/sysdeps/pthread/tst-stdio1.c
@@ -46,7 +46,7 @@  do_test (void)
       _exit (1);
     }
 
-  delayed_exit (1);
+  delayed__exit (1);
   xpthread_join (th);
 
   puts ("join returned");