From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Crash recovery strategies Date: Sun, 03 Jan 2016 15:20:40 -0800 Message-ID: References: <83mvu1x6t3.fsf@gnu.org> <5679DC83.70405@cs.ucla.edu> <83oadhp2mj.fsf@gnu.org> <567AD556.6020202@cs.ucla.edu> <567AD766.3060608@dancol.org> <567B5DAB.2000900@cs.ucla.edu> <83fuyromig.fsf@gnu.org> <567C25B1.3020101@dancol.org> <56892FD6.8040708@dancol.org> <568988EE.3010205@dancol.org> <56899278.9000007@dancol.org> <56899EAC.1030408@dancol.org> <5689A6DE.2080709@dancol.org> <5689A8FA.9040206@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1451863360 26147 80.91.229.3 (3 Jan 2016 23:22:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jan 2016 23:22:40 +0000 (UTC) Cc: Eli Zaretskii , Paul Eggert , Emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 04 00:22:33 2016 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 1aFryr-0001MA-8d for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 00:22:33 +0100 Original-Received: from localhost ([::1]:43200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFryq-0008Nd-IK for ged-emacs-devel@m.gmane.org; Sun, 03 Jan 2016 18:22:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFrye-0008NW-A2 for Emacs-devel@gnu.org; Sun, 03 Jan 2016 18:22:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aFrya-0006AD-9c for Emacs-devel@gnu.org; Sun, 03 Jan 2016 18:22:20 -0500 Original-Received: from mail-pf0-x22f.google.com ([2607:f8b0:400e:c00::22f]:33587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aFrya-0006A9-4E; Sun, 03 Jan 2016 18:22:16 -0500 Original-Received: by mail-pf0-x22f.google.com with SMTP id q63so156312632pfb.0; Sun, 03 Jan 2016 15:22:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=Xa0zQsPEWtRp/VIxkB40wmxqAGyRU1X33AUBLwOhsxk=; b=IFu+0SZiQI+9GjUeerEE2ci5vsvYnHUj3BoOYBkhxiS1n9QqXxXisYCmax5krEp5Nn O9DyPtgXB5mZw7nw2Z39l5nRVR70JVor7MstKiVLLBs6fT9wQujP62HJkBvb4S3TW85X RsjekJJmt8xeJ94dCNVcbERKcjtUDzdsAlQ+zVZfs2xIDRUw0uIr+yW8CWfpufmNJVjB cqycXYnwKzA6dYuKwpCXubmyC13myyKvtBa/Y1g6PfrFMcAmSHmOvsj7CCD7Q2JUYoHa +lHcLhINyalfcvAHHKGxKqbYr+98goIEu9Tp7y2hDVMeeh1Dg7jZ/eMGZJa56kEYhtl1 tn/Q== X-Received: by 10.98.0.14 with SMTP id 14mr70506382pfa.164.1451863335576; Sun, 03 Jan 2016 15:22:15 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id v17sm95992655pfi.17.2016.01.03.15.22.14 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 03 Jan 2016 15:22:14 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 336041200FABB; Sun, 3 Jan 2016 15:22:13 -0800 (PST) In-Reply-To: <5689A8FA.9040206@dancol.org> (Daniel Colascione's message of "Sun, 3 Jan 2016 15:04:26 -0800") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Daniel Colascione , Eli Zaretskii , Paul Eggert , Emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22f 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:197523 Archived-At: >>>>> Daniel Colascione writes: > The problem is that displaying a GUI dialog box requires re-entering the > main event loop, which I think risks too much undefined behavior. A separate > process sidesteps the problem. It does do that. But maybe this is better as a v2 feature. Let's try just prompting before shutdown first. > The code that bothers me is the code that longjmps *out* of the sigsegv > handler that catches stack overflow. The handler being there is fine. Under > my proposed scheme, we won't longjmp out of the handler unless the user > tells us to do that. OK, that's easy enough to understand. I'll let Eli and Paul weigh in now before continuing. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2