From patchwork Tue Jun 6 09:40:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 70635 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2E971385700C for ; Tue, 6 Jun 2023 09:40:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2E971385700C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686044450; bh=ofjJX92klrD5murLmGSxWBuginQMiwDIP9X15lA9CMw=; h=To:Subject:In-Reply-To:References:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xzbtqu5qoW7aAGSiX7Souvxvb1g7eoT14vr5dl32bEofjXBT7dqHovNyxQlQnLaU1 pjoND8u0E10KTaCM2fRm6R9nNZwSzGbvH2BbwfIOmMFnVO3S/KrSaJJMfFg8xYh2Nl qyjr2MLpERD1+vDt9lvmGTd19iP2GYYIt3EEEWQU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org 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 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) 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 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" 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");