From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: block_input for some APIs Date: Tue, 13 Dec 2016 05:43:25 +0200 Message-ID: <83twa8bijm.fsf@gnu.org> References: <831sxdc9hs.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1481600577 25311 195.159.176.226 (13 Dec 2016 03:42:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2016 03:42:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 13 04:42:53 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGdzP-0005qy-L7 for ged-emacs-devel@m.gmane.org; Tue, 13 Dec 2016 04:42:51 +0100 Original-Received: from localhost ([::1]:35140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGdzT-0000NN-Lj for ged-emacs-devel@m.gmane.org; Mon, 12 Dec 2016 22:42:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGdzN-0000NI-TX for emacs-devel@gnu.org; Mon, 12 Dec 2016 22:42:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGdzK-0006YD-RU for emacs-devel@gnu.org; Mon, 12 Dec 2016 22:42:49 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGdzK-0006Y9-Nm; Mon, 12 Dec 2016 22:42:46 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1535 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cGdzK-0006qs-1K; Mon, 12 Dec 2016 22:42:46 -0500 In-reply-to: (message from Paul Eggert on Mon, 12 Dec 2016 13:08:45 -0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:210393 Archived-At: > From: Paul Eggert > Date: Mon, 12 Dec 2016 13:08:45 -0800 > > On 12/12/2016 10:01 AM, Eli Zaretskii wrote: > > Does anyone remember why we block input around calls to functions like > > getpwnam or tzset or fwrite? > > I think this dates back to when C-g and/or other handlers called > longjmp. Right, that was my guess as well. Thanks. > If I'm right, we don't need to block input around them any more, > since our signal handlers are safer now. > > Similarly for MALLOC_BLOCK_INPUT; we should be able to get rid of its > machinery now. Yes, I think it would be good to get rid of those of them we don't need any longer.