From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#50043: 28.0.50; USABLE_SIGOI undef code paths do not work correctly Date: Wed, 17 Nov 2021 09:25:30 -0500 Message-ID: <65f67100-2256-ee0d-4722-6d0e7e7e9cd5@cornell.edu> References: <874kbtfthj.fsf@gnus.org> <835yw9cwoa.fsf@gnu.org> <87mtpla013.fsf@gnus.org> <83zgtlbaw6.fsf@gnu.org> <87fsvcuttw.fsf@gnus.org> <83czn12uz1.fsf@gnu.org> <837dd80zc7.fsf@gnu.org> <92d3e509-be73-88c8-0085-f13c3716dd1b@cornell.edu> <87mtm3p6uk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19388"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Cc: 50043@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 15:32:36 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnLzI-0004nl-6V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 15:32:36 +0100 Original-Received: from localhost ([::1]:41136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnLzG-0000aJ-7V for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 09:32:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnLsw-00074d-7s for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 09:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnLsv-0005oS-W0 for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 09:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnLsv-0002ge-Rw for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 09:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2021 14:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50043 X-GNU-PR-Package: emacs Original-Received: via spool by 50043-submit@debbugs.gnu.org id=B50043.163715914710296 (code B ref 50043); Wed, 17 Nov 2021 14:26:01 +0000 Original-Received: (at 50043) by debbugs.gnu.org; 17 Nov 2021 14:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:60514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnLsg-0002fz-Ta for submit@debbugs.gnu.org; Wed, 17 Nov 2021 09:25:47 -0500 Original-Received: from mail-bn7nam10on2139.outbound.protection.outlook.com ([40.107.92.139]:18945 helo=NAM10-BN7-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnLsd-0002fk-Ks for 50043@debbugs.gnu.org; Wed, 17 Nov 2021 09:25:46 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XmhLV4dvpKYYWhwF0yn0oRaympfWTcIGBCPIoQKMCz5FJLlfmoXIJVsNHDUXZBCcjwxQmgJliqaqS9UQ+1NVf8tCmv1oxJDSiKhcueSnqfm95s+ERLBwZYQcspbvZQso/h2M1ykVZvE0Dd+ZdRiwd2H3tpKy46AeizTj2gzz8GjGQ9uJ37P/b2jzrTpJKB2uKmJf0CaJFAVzqxE3xJmmaoBbfXCeDpI5z+DQVk7S1dx5srTu3/C3CFY8IxoQkub3n+g1lc//x55GTtAFNlG4E3hHQnfEuNdcWVkHnX0M+dbURbcudnuoNHK0QgLzu9mZtaI1Oe3aKP96YYehtTzEOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/2OluDYWOHhgCK89taWnnJMA3R5rnY2nc7/PH+fxAaU=; b=hrigsD3T2hrqGT/7YjzJvJlRMkypOPcitHrNbuoXc6+luYuHxhQqrLte+Oe0EzH88FuUBj2a2/Cz+f6VR2KvT83IFZo00TmSzGawmdwgJtmJPbBWmYUW5nZUTZVPqriWLESrPyE83tW+Wp6I8gQgJZaCjwM7/gRNUUy2VzlGJ7FNFUGchAzIfcQPJMI8dsFK0vwCwgN8zVrUIZoGiqypX3hXVyBtmoERFPmAJI2GxXatB/GmMDfyz0LTVpD+WyP3wKJnA423yaCo4LaQSTXfi1jTG36gPV7ShEFYMxY8cfXZkDBs2GFiu+kHqjqg5y8fUd+kOo38TIdXt1YQmwPiFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/2OluDYWOHhgCK89taWnnJMA3R5rnY2nc7/PH+fxAaU=; b=O932HY1KWm+K0+vOo9ifqNUHFcD0p98iNpg3Ebh0m1oUXTWBdFDhwjnqGEruA+MSMzVkISKJwsivtGkyfuq713gLB2y0fJBGI6nwUDGWCrEBckkSlZ8u+rHLJrO/W5szWcZBXIrnXuwj0uuca7hUcdvVqBMP0ApneDfRuoq0B6k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cornell.edu; Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) by BN6PR04MB0659.namprd04.prod.outlook.com (2603:10b6:404:da::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19; Wed, 17 Nov 2021 14:25:32 +0000 Original-Received: from BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::88c4:79c5:1eb1:b969]) by BN7PR04MB4388.namprd04.prod.outlook.com ([fe80::88c4:79c5:1eb1:b969%7]) with mapi id 15.20.4690.027; Wed, 17 Nov 2021 14:25:32 +0000 Content-Language: en-US In-Reply-To: <87mtm3p6uk.fsf@gnus.org> X-ClientProxiedBy: CH0PR08CA0006.namprd08.prod.outlook.com (2603:10b6:610:33::11) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) Original-Received: from [IPV6:2603:7081:7e3f:3419:1c5d:e1a9:7b:59ab] (2603:7081:7e3f:3419:1c5d:e1a9:7b:59ab) by CH0PR08CA0006.namprd08.prod.outlook.com (2603:10b6:610:33::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4713.19 via Frontend Transport; Wed, 17 Nov 2021 14:25:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69cae065-8fec-4d4b-8471-08d9a9d61cb7 X-MS-TrafficTypeDiagnostic: BN6PR04MB0659: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Wbry8aBxcZbtlLZq9hLYkkY9EEZrNZt39ylWvINqNjFAPWSCwrMuieBDuEFpoBV9bh98qNGF4Xu04U1Lyi3Wx/mHGyObsryuw0299bjz7A96blPBmfDLjIT7JP4vSFuiO7cVleWx1+HvXQQHGElqOhx+X/eCFNACl2BCkeud6x8aI8A+AKSiDHvbJdHLMJEalQhh7hjnxdq37SnmHcG42HYaC//Vpq6SsrpyTHjWUynRxNGTskP9pVxNzO1LHYu4xQGgk2lam+QZPUinomwbWnKOf4ZZJbI8yWgBvcZCyKOqORv+uHKeFa3PpbDPdq4IfHjX/fORuvNOjqj7F+Kyq20ZaztcZYj35pkVUe2F4XV9DPg7ky6AYhUtWk0CrsD7nCdQzEduRDtM76M6XvKPaV74Y9pqZJ8Hc6gSN8sf7D2RF6IbEQcsXAkubeDGF/ruH8KdyfLO9BOlqDON8frHlJB4egJNyVmNcMRPjcLOce+eP0WBjWHUNvIgyehrzF8EIbUMl/yQV/YDz4aNvzB0APrc3DqpcFD5DuhYohokeF6DRuKkHcb0O9FGXwL7Jcp183GCum7zPJRMxIeBYgYl/e9RGiVA89/diWdHsxia47s+n7Ut4o8nWt4HHwYRrTQp8Lz5vXiLpf1oEb2kNlnb6HI/w2ArILBqRtlnvluscu6PzWgLmfIziN56IYJbzt62R0weyjXlTDv5JfCMu6+SvVrKiSWX94J+Y4VVvSGwxJ4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR04MB4388.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(4326008)(2616005)(5660300002)(75432002)(31696002)(2906002)(31686004)(53546011)(36756003)(508600001)(86362001)(66946007)(8676002)(186003)(4744005)(6916009)(316002)(8936002)(66476007)(66556008)(786003)(38100700002)(6486002)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /VEG/OT5MVlxP0dyQMkrgag/9TNdLCQcElYevTqcCB0t4FL//XV/wG0Ox2EFG/Fl4kqIqbM/AZFuIOhMpkTEw4sIxTJKjTorA2FTW8uzTUKZTi0IxigM9k+Y+On/MdFGJwNE0cH1Mkfov3kJ7p6ele4bW87b8eLrYUMhETpDIp/9HtM3eXh5oApFVgP7s6cGRQwExOpT1Z/uzRem5X4OtG7IaEoJ9eZ6Hanjy8HgR/M3ovuBUZmc27/IizvhZb83iVgQ3KR3Gg0AxlLkjbZ+YhMj3AkQq1LLYERAOoT9+4T3vdZI7nG0Zkny2CluN+FMDa8DHUi7OvCaPZ009afmrPkGZFE8C6nOooO33ytzs57L5z20wGAn/ACdS+wbR5LW/jgbLHZR1+U100NzeABKbsLlVO9GWbgm5PmPpspQKRS9Gy+KVA7jGXOQJqbNXIzNyWa34FTsfd/bb+Bz+ukYthVrkYrxMBy+7kU2RzZQNAyQa3r0DCL/hhx/EVqyInDoeayKMs7A9Ng9fBjENL8T4Zcrtj8bzxxIL8hhVWQKmn2eiUb2k+DRlz2jq7tBWGVI+tIR/zdPLU/L1GRhojOHP47YWFmHrqgknANS2z9pg815Z8aF/rP/BhHJtzwE0+FJ75zSc8oJoukl8GpovQ1ribZS3S2Y8WBc1tNKIXwzxxB9KFQS3ORRDazgkAercWdKjyrlrZ7S1op0NVLhfOVsz3XEApfQyzeaz1elNyWsYPyTwd2k+AOnKDEdb7 SIlcWmelFehRz0ACMVIO7RxM5zAgzGDii99bJ6NQNq38y2f+2B6ZBcMy5P3Bsep3xFuIq671dU8eODzFf99uEHCf9Pjw/snwBC X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 69cae065-8fec-4d4b-8471-08d9a9d61cb7 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2021 14:25:32.0959 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FQnQC/PdiWyXght036ioSbc5QlBX966NBE2NiVA76tElEEGeCgtmE45DEIZSzi/gwWnwoRtVuSCiuT0WKNowaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR04MB0659 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220206 Archived-At: On 11/17/2021 2:41 AM, Lars Ingebrigtsen wrote: > Ken Brown writes: > >> Namely, whenever wait_reading_process_output is polling for input, >> avoid getting stuck in select, something like this: > > [...] > >> +#ifndef USABLE_SIGIO >> + /* If we're polling for input, don't get stuck in select for >> + more than 25 msec. */ >> + struct timespec short_timeout = make_timespec (0, 25000000); >> + if ((read_kbd || !NILP (wait_for_cell)) >> + && timespec_cmp (short_timeout, timeout) < 0) >> + timeout = short_timeout; >> +#endif > > Sounds like a good general solution to me (but I guess this will also > affect `accept-process-output'? So it should probably be documented > there). I don't think it affects accept-process-output. When the latter calls wait_reading_process_output, read_kbd == 0 and wait_for_cell == Qnil. Ken