From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12450: Remove configure's --without-sync-input option. Date: Sat, 15 Sep 2012 17:12:13 -0400 Message-ID: References: <50543449.1070306@cs.ucla.edu> <83k3vvtyw0.fsf@gnu.org> <5054551A.1070207@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1347743583 27413 80.91.229.3 (15 Sep 2012 21:13:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Sep 2012 21:13:03 +0000 (UTC) Cc: lekktu@gmail.com, 12450@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 15 23:13:06 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TCzfm-0005sq-17 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 23:13:06 +0200 Original-Received: from localhost ([::1]:53901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCzfh-0003By-L6 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Sep 2012 17:13:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCzfe-0003Br-VX for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 17:12:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCzfe-0002cr-0s for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 17:12:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCzfd-0002cm-Tx for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 17:12:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCzgg-0002bp-Ae for bug-gnu-emacs@gnu.org; Sat, 15 Sep 2012 17:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Sep 2012 21:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12450 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12450-submit@debbugs.gnu.org id=B12450.13477436019976 (code B ref 12450); Sat, 15 Sep 2012 21:14:02 +0000 Original-Received: (at 12450) by debbugs.gnu.org; 15 Sep 2012 21:13:21 +0000 Original-Received: from localhost ([127.0.0.1]:35840 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCzg1-0002aq-Ln for submit@debbugs.gnu.org; Sat, 15 Sep 2012 17:13:21 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:63961) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCzg0-0002ak-3T for 12450@debbugs.gnu.org; Sat, 15 Sep 2012 17:13:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09sr+Lr/2dsb2JhbABEDrQDgQiCFQEBBAFWIxALNBIUGA0kiBwFugmQRAOjM4FYgjBV X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="198417842" Original-Received: from 108-175-226-235.dsl.teksavvy.com (HELO pastel.home) ([108.175.226.235]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 15 Sep 2012 17:12:14 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id DC5DF5944B; Sat, 15 Sep 2012 17:12:13 -0400 (EDT) In-Reply-To: <5054551A.1070207@cs.ucla.edu> (Paul Eggert's message of "Sat, 15 Sep 2012 03:14:50 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64375 Archived-At: >> If someone can describe in detail what SYNC_INPUT means Maybe not quite, because it was implemented rather than designed. But SYNC_INPUT's purpose is to reduce the code run during POSIX's signal handling to its minimum (since it's basically unsafe to do anything in there, due to POSIX's definition of signal handling), so it only sets a global var (pending_signals) which is then polled by QUIT, so that the real code reacting to the arrival of a signal is run synchronously. This avoids problems such as malloc being called in the middle of another malloc invocation. The downside of SYNC_INPUT is that we may fail to poll pending_signals often enough and hence become unresponsive. Since SYNC_INPUT has been the default for a long while now, I think we can drop the non-SYNC_INPUT case, indeed, as suggested by Paul. But I don't know how it interacts with the non-X11 code. Stefan