From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 228EC3858C5F for ; Tue, 6 Jun 2023 09:40:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 228EC3858C5F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686044424; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ofjJX92klrD5murLmGSxWBuginQMiwDIP9X15lA9CMw=; b=jTHTjuuhAeNOEaUvKYK46xW9PYvU+6m0diCJa/zuvdVhVhZYoHPIToaNtRpGiDuzX5+8N4 msHzV7d7YFymxg3AEH3n9FQMP9h9SW6fuUwc0pgNOpgA58ldq7Rmg21VBTtAwcy9V+Y22s ZkSDbVoD577EupJWKFThnE3xwAqEq3o= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-330-AoeiUQZVOdiYPj7XfiHxJA-1; Tue, 06 Jun 2023 05:40:23 -0400 X-MC-Unique: AoeiUQZVOdiYPj7XfiHxJA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C1B7B1C068D9 for ; Tue, 6 Jun 2023 09:40:22 +0000 (UTC) Received: from oldenburg3.str.redhat.com (unknown [10.39.193.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 698CA492B00 for ; Tue, 6 Jun 2023 09:40:22 +0000 (UTC) From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 2/2] pthreads: Use _exit to terminate the tst-stdio1 test In-Reply-To: <047703fbb88eb38fbe973f3abedb279382f181d0.1686044390.git.fweimer@redhat.com> References: <047703fbb88eb38fbe973f3abedb279382f181d0.1686044390.git.fweimer@redhat.com> X-From-Line: 7d421209287a07db5e926552ae5fbe9d8abb50dc Mon Sep 17 00:00:00 2001 Message-Id: <7d421209287a07db5e926552ae5fbe9d8abb50dc.1686044390.git.fweimer@redhat.com> Date: Tue, 06 Jun 2023 11:40:21 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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(-) 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"); -- 2.40.1