From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex =?utf-8?Q?Benn=C3=A9e?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re-enable SIGIO when waiting for events Date: Fri, 17 Jul 2015 09:45:46 +0100 Message-ID: <87fv4n5g05.fsf@linaro.org> References: <1436615880-1719-1-git-send-email-mac@mcrowe.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1437122768 22416 80.91.229.3 (17 Jul 2015 08:46:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2015 08:46:08 +0000 (UTC) Cc: Emacs Developers To: Mike Crowe Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 17 10:45:59 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZG1HJ-00057I-51 for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 10:45:57 +0200 Original-Received: from localhost ([::1]:43580 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG1HH-0007Jf-W4 for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2015 04:45:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG1HF-0007JW-AS for emacs-devel@gnu.org; Fri, 17 Jul 2015 04:45:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG1HC-0008AT-42 for emacs-devel@gnu.org; Fri, 17 Jul 2015 04:45:53 -0400 Original-Received: from mail-wg0-f42.google.com ([74.125.82.42]:35914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG1HB-0008AO-UM for emacs-devel@gnu.org; Fri, 17 Jul 2015 04:45:50 -0400 Original-Received: by wgxm20 with SMTP id m20so76764258wgx.3 for ; Fri, 17 Jul 2015 01:45:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type:content-transfer-encoding; bh=6YDlUcjKxFwxjxg+DvWXrVb0NaX32zdk0GySVIPba4w=; b=gTi9fOuFy2OyKFQuuODpwxFIBY0YKYNqYpL/9IdF4C7HYzjB1144tgcVgkaI9WsoaC P6jV2LRphUulDdQJl7nw9YqSDhYrBDeIrbbv9xh3ncWWBwhihYgRstvLwPBVOX3ndLvC rUTvdN0lQXvDaES/snSQEtP0TugiYAx2YCR4E09Hw/YUwtgwkcGL9rhUfR97jWi3Vn4i fgd2VO3HLxV2tdXj7OqccoWFfBAFq28t2slKANeKTRpWl6Mi1DZcZmPyqPmQXy9fKh9x 9BMRSutIojva1F4rp2HrYngnavwL4zKyeb94JzlvXZSi1pfEnhjs7aQX2Ciym4BVHC5Y ImqQ== X-Gm-Message-State: ALoCoQmIHdwWV+fR3zQn8X5pALmh/w8kv7Rt74jK6zqle8KUCIdcrJJXTmejEyQvjyaFgoNOTbbY X-Received: by 10.194.5.4 with SMTP id o4mr29338240wjo.51.1437122749337; Fri, 17 Jul 2015 01:45:49 -0700 (PDT) Original-Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id ea2sm7387885wib.22.2015.07.17.01.45.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jul 2015 01:45:47 -0700 (PDT) Original-Received: from zen.linaro.local (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 6C5AD3E0870; Fri, 17 Jul 2015 09:45:46 +0100 (BST) In-reply-to: <1436615880-1719-1-git-send-email-mac@mcrowe.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.42 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187918 Archived-At: Mike Crowe writes: > Pasting a large string into an Emacs tty frame causes > keyboard.c:kbd_buffer_store_buffered_event to call ignore_sigio() > which sets SIGIO to SIG_IGN. > > Unfortunately no-one seems to ever re-enable the SIGIO handler. > > This leads to timeouts when attempting to paste into an Emacs X11 > frame as reported at > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16737 . > > It appears that keyboard.c:kbd_buffer_get_event used to re-enable the > signal handler but that was removed as part of a large signal-handling > clean up in 4d7e6e51dd4acecff466a28d958c50f34fc130b8. > > Reinstating the re-enabling of SIGIO in kbd_buffer_get_event solves > the problems reported in bug 16737 for me. I've patched my local emacs-24 branch and will give it a spin to see if the problem still occurs. Thanks! -- Alex Bennée