From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hera.aquilenet.fr (hera.aquilenet.fr [IPv6:2a0c:e300::1]) by sourceware.org (Postfix) with ESMTPS id 1D58A385042C for ; Tue, 29 Dec 2020 00:07:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1D58A385042C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=samuel.thibault@ens-lyon.org Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 090E423D; Tue, 29 Dec 2020 01:07:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sfbz_HVWWc01; Tue, 29 Dec 2020 01:07:15 +0100 (CET) Received: from function.youpi.perso.aquilenet.fr (lfbn-bor-1-56-204.w90-50.abo.wanadoo.fr [90.50.148.204]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 372ABD2; Tue, 29 Dec 2020 01:07:15 +0100 (CET) Received: from samy by function.youpi.perso.aquilenet.fr with local (Exim 4.94) (envelope-from ) id 1ku2Xi-003J57-0p; Tue, 29 Dec 2020 01:07:14 +0100 From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault , commit-hurd@gnu.org Subject: [hurd,commited] support: Make support_process_state_wait wait less Date: Tue, 29 Dec 2020 01:07:13 +0100 Message-Id: <20201229000713.788290-1-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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-List-Received-Date: Tue, 29 Dec 2020 00:07:19 -0000 Tests such as posix/tst-waitid.c make heavy use of support_process_state_wait, and thus on non-Linux where it falls back to sleeping, a 2s sleep makes such test time out, while 1s remains fine enough. --- support/support_process_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/support_process_state.c b/support/support_process_state.c index e303c78fc8..8b06d230a5 100644 --- a/support/support_process_state.c +++ b/support/support_process_state.c @@ -88,5 +88,5 @@ support_process_state_wait (pid_t pid, enum support_process_state state) xfclose (fstatus); /* Fallback to nanosleep if an invalid state is found. */ #endif - nanosleep (&(struct timespec) { 2, 0 }, NULL); + nanosleep (&(struct timespec) { 1, 0 }, NULL); } -- 2.29.2