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#51820: 29.0.50; process_pending_signals is almost useless without SIGIO Date: Sat, 13 Nov 2021 17:49:59 -0500 Message-ID: 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="13816"; 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.0 Cc: Paul Eggert To: 51820@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 00:10:13 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 1mm2A0-0003Qo-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 00:10:13 +0100 Original-Received: from localhost ([::1]:45784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mm29z-0006nY-CF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Nov 2021 18:10:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm29r-0006nM-G3 for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 18:10:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mm29r-0002en-7a for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 18:10:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mm29q-0006H7-I2; Sat, 13 Nov 2021 18:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: eggert@cs.ucla.edu, bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Nov 2021 23:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51820 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Paul Eggert Original-Received: via spool by submit@debbugs.gnu.org id=B.163684496224056 (code B ref -1); Sat, 13 Nov 2021 23:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Nov 2021 23:09:22 +0000 Original-Received: from localhost ([127.0.0.1]:48391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm29B-0006Fv-TI for submit@debbugs.gnu.org; Sat, 13 Nov 2021 18:09:22 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mm298-0006Fm-NJ for submit@debbugs.gnu.org; Sat, 13 Nov 2021 18:09:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm298-0006m6-JC for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 18:09:18 -0500 Original-Received: from mail-mw2nam12on2113.outbound.protection.outlook.com ([40.107.244.113]:47969 helo=NAM12-MW2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mm295-0002c4-I8 for bug-gnu-emacs@gnu.org; Sat, 13 Nov 2021 18:09:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BHeJyviqpxEtKX2EULkB38HXb2hIEHgneGFnlSVnsHdWbfECrnKQS5ZBhHvfsDt0AxxLYlQ3/VIo0NRc+y6VhCBUs3JvEU34eWSFuWxEKlxylfZc/fsHdNojX/A3Xg6HljSNags1MRBOhA2V0MCjLzA9QyPSq6avJXRvHTFQ3JUZDeXnsnl9ybeeUiqkopuRwq0SzCI7lraB6alPCj58CFa9dTmkw5DdsoNchtsiRmq5/DY/KJiXYyqT8Sy3Kplpe+r6o3Fxf7ljt/R29OFERbDENB14Jk7omNzsVYSNV9XjXmY8tLjhwigB6PF4z7jNEFXZanwTuw0GK+22Zyd5Sw== 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=xE7zOuqzgJA4wsHPi6l+no0SMWUOWmid/MF1+PQ1BCU=; b=L/TQ9wnxOVkdRGewS5eO4vTcO29blgITRQuki+Dioyd3aUYSEXp4+Cp7HEdgmOXzxlE34VqfkSDEVedKVxihmXrW4woX4Qxf5xJuPA024kNL3b7Jg4ea9weSCXo/HUmaYYhKdAhjmCryPEcOHtfF4juO8d6Ayju9CwOzl2z9Pzku1uBllGK3w6beoAEx6dM/BtMUPV8ljlFYmHC+RUJzc3h0fww3WcEIU/bw7tjxzPUgqmSwR+STbyYZXObQimtXuNjnTee8cJLcUiZ5B6XYjkZ29d9Icqmzp2bFfZqUOyLJ7j/jUC44qS2bdOOjDBZcHxfYl+Wi5PAO01MritQt3w== 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=xE7zOuqzgJA4wsHPi6l+no0SMWUOWmid/MF1+PQ1BCU=; b=VrrkTHYeV2LnA2qOummu86MzoZyhEMSOh7JYt61O+ll7i4RPGj2iVIlIpAs14BfPyZXN0r/Zao82xZckirx3F5iE7LJYt4u1OxG0LDNDqYtASDJiAJTH8WEprUE1cGc4HTXgJX09YuQP/qqLvC3nK4XHlYyDVh9qU7A3Y3mjf84= 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 BN7PR04MB3954.namprd04.prod.outlook.com (2603:10b6:406:be::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15; Sat, 13 Nov 2021 22:50:02 +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; Sat, 13 Nov 2021 22:50:01 +0000 Content-Language: en-US X-ClientProxiedBy: MN2PR10CA0036.namprd10.prod.outlook.com (2603:10b6:208:120::49) To BN7PR04MB4388.namprd04.prod.outlook.com (2603:10b6:406:f8::19) Original-Received: from [IPV6:2603:7081:7e3f:3419:9143:86f9:2cbf:bd4f] (2603:7081:7e3f:3419:9143:86f9:2cbf:bd4f) by MN2PR10CA0036.namprd10.prod.outlook.com (2603:10b6:208:120::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.15 via Frontend Transport; Sat, 13 Nov 2021 22:50:01 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6e0d0ff7-91bc-4b20-f003-08d9a6f7ed28 X-MS-TrafficTypeDiagnostic: BN7PR04MB3954: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VayICzULJzIHCWSeq10t8vd3C6mtnlahLG8QvFLNFMfdb08nGIiI8i4e562dQ8cy7XA4NJC8R8AxxpwCu2CICZKkA5sJcqZVBYYr7sIn601YKWuymFbf5MtfKzFLs69KRScbwT8rYin4wm8rI7zCL8OUT77EVNjnIWwvUU8zQwLb94aunBwd2/ZLd4BDF/0QM8zDf06dgJv/r9yw0qtIAAQtudDSVDdA3YA+M1GvsWh/42v5UuxhSTBi4BSMUgVq9aJnjN0SDTEkjPjefxavCcgZoyYsSYh5eiVJRk/zvqh+T2DGc0TJyDkfeNW9m2h0s8CxBtyhtGUBmm7jUuHVhLUIcRnVivKdC45zwB4ZVmjOsStUyo+LW4K1l5aHcEsX//F8yKsmVezt3KKhw4QrILLFpWez3IeG568qAW9tuDER01I6j4TCvp6QjJcy0i03RULIQK574Ra0STXV5AsS5K72TXwTAdyeG83fFGrazrjHBXkPz/L+EnDM7I8XTdK8YoaU/KkAccJihpT9NMjBpyQ6sualM0BMbFnFWViROtf3+Do7B9rCsFwlfsP2k06q3CBN8F3TGoZRLeGQjpxhmnieFG4zgwKEmshZAgK2Sz/LzbniSx3O8rjc6/+YX2IEd4veI5MSKfKr9nSjvXGxMOdHPi5tzycd0kktXO1v6lC4fST1tpqIGeccg8HLloz/aLUfNVrSjCv7LiAOMkzxaoCbi6CXDT+76eOF/J9h+/k= 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)(31686004)(2616005)(8676002)(6486002)(186003)(66946007)(508600001)(86362001)(8936002)(31696002)(6916009)(316002)(786003)(5660300002)(83380400001)(2906002)(38100700002)(66556008)(66476007)(75432002)(36756003)(43740500002)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KmHdz9aNzpao4l0E12AA8eHJ38WyL2YoZiHj06Dk4VaTyXc/tFdkMsG7j9ydS4CMyhghQ2ISW1Txhb564lC8OlrjsZFXJ273hipTNC6pjGQ9KlCZvzLVnItJt9YbaunM8s3PVUvpS7g3AJKiTElMdKoS/DyKgMDXbVXc8EXqlXcosPJkrsxljw5Q30lZJrzfvo/VaDk7RWjKUgGKR+X/QLaieWBmomWgH7GIRj6/c7M/M7COb9/qHlx7/8rsH8YOtx5aAt2csT3v8m43R7Y74nGiRt4EBbR+6BG6xu2bP2um5bssagMI8Br13pGaLXhrVc1yc85k2E28DVnAmG6wplu5P284uuZ7o6uPEaiX3MMEMV1b+6iONOv3hAIalm2mQzjnYlhQNAcRp3UtIl6YuUMPTftKeD+2WoyqZXCjN2nROfg78PqyJaT/EhbgoDRRmLLc2DT7HjSSy1ApvaqPYtODbWPtJGBXRi5JjYP+0josdYqvpfVNI6PtE+Y0RmPeX+8vSGKkc7H/D+UjrikFO/yxG6jevCll3yuhLeWo51G0hBJ6WWE6KAL8CRoiPWwMUrHVBBvLKFIUY4NauVUVQ6SR8n75K9Jzun6yXjz9l8UmEwD/nx4LZ1Nw0zjJqY/smvAd+ZAmN4hD4mKBMzQYsFjMnX6rCExRZUBlcOoumBd2S6hOL+Xl7wKnp/JJnfbYFjeqv3ONmlvKTSS7/5hY50f2KGEtv8jZvsbOR8HUd7WEBKtt/d8Sfs7KdS hTs1qEukUuwbvGGAnIW3ve9rqnROKObCS+lKgd2JuxTxRrCqeP9M7zCE+S1jliSlH5MopvBq2L+1ZrLDidXE+VGzfRzVqLViWJ X-OriginatorOrg: cornell.edu X-MS-Exchange-CrossTenant-Network-Message-Id: 6e0d0ff7-91bc-4b20-f003-08d9a6f7ed28 X-MS-Exchange-CrossTenant-AuthSource: BN7PR04MB4388.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Nov 2021 22:50:01.7550 (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: k6eGWXiutwoiU5lCqrpNAnl+eC/TkNjIOULGeKxOutmS9CGj0VvfVJfX83ajeXxZV12YDotsCAzkfYpJ4DzqSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR04MB3954 Received-SPF: pass client-ip=40.107.244.113; envelope-from=kbrown@cornell.edu; helo=NAM12-MW2-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:219843 Archived-At: I might be missing something, but it seems to me that the main purpose of process_pending_signals is to read input in case the user typed C-g. This is in fact done on systems with SIGIO, via a call to handle_async_input. But handle_async_input is a NOOP on systems without SIGIO. This has been the case since the following commit: commit 4d7e6e51dd4acecff466a28d958c50f34fc130b8 Author: Paul Eggert Date: Sun Sep 23 01:44:20 2012 -0700 Simplify and avoid signal-handling races. [...] Fixes: debbugs:12471 I can't find anything in the commit message or in the discussion of Bug#12471 that explains this. Paul, I realize that the commit was 9 years ago, but do you remember why you made this change? On systems without SIGIO, an atimer "poll_timer" is created that fires every 2 seconds. This causes pending_signals to be set, which has practically no effect AFAICT. The only thing I see that poll_timer accomplishes is that if emacs happens to be in the select call in wait_reading_process_output when the timer fires, then select will return. Ken