From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Crash recovery strategies Date: Mon, 4 Jan 2016 07:44:00 -0800 Message-ID: <568A9340.4020804@dancol.org> References: <83mvu1x6t3.fsf@gnu.org> <56797CD9.8010706@cs.ucla.edu> <8337uuqsux.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> <5689B3F1.6010201@dancol.org> <831t9x8i9l.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rL85dSWaUVRtK3asqkjawwL5fqPdaUjCw" X-Trace: ger.gmane.org 1451922271 14971 80.91.229.3 (4 Jan 2016 15:44:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 15:44:31 +0000 (UTC) Cc: eggert@cs.ucla.edu, Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 04 16:44:26 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 1aG7J2-0001KT-2U for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 16:44:24 +0100 Original-Received: from localhost ([::1]:45534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG7J1-0007PM-9c for ged-emacs-devel@m.gmane.org; Mon, 04 Jan 2016 10:44:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG7Im-0007PF-Fj for Emacs-devel@gnu.org; Mon, 04 Jan 2016 10:44:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG7Ii-0005nY-EH for Emacs-devel@gnu.org; Mon, 04 Jan 2016 10:44:08 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:46102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG7Ii-0005nQ-7s; Mon, 04 Jan 2016 10:44:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=TuzDCZz4GlRL+qbRqnZQCpgDKAV0W0GLkaL/AjRlap8=; b=gBxB61rNo2rhcoPT5c10wuB2YVwICIz3hmONV3HyyHxT7ILOcYPUtYnLqAxOmPnAsYtrjLcemN6jebSQA3jgKen5vg6sfI1YAulDYnTFwDUjZwkzvq3P/j4215gR0m9324XTQOVV5aD2kIMfM/mGFOzag/NsShnov98GBY/NddRYu+5LzVZ8pqNWglg4dnqd+28vriuWhZA1rF2UgclO2mdj0GwoG1K64retj99GONen4VVB9v49vD44ThzJVx9Yhx8E8UGfHw8x7sO1/V+IKNN/TDmG+sMDBqBW0qQsDQoefouQoJX3NMI91ZiSXNw4WXSIm6DBxT8iSlssNjpYsg==; Original-Received: from c-67-161-115-4.hsd1.wa.comcast.net ([67.161.115.4] helo=[192.168.1.210]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1aG7Ih-0004GT-PD; Mon, 04 Jan 2016 07:44:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <831t9x8i9l.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 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:197598 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rL85dSWaUVRtK3asqkjawwL5fqPdaUjCw Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 01/04/2016 07:40 AM, Eli Zaretskii wrote: >> From: Daniel Colascione >> Date: Sun, 3 Jan 2016 15:51:13 -0800 >> >> How would moving to C help? Keep in mind that we're talking about fork= >> *and exec*, so the parent and child don't share memory. They can, >> however, communicate over a pipe. >=20 > Communicating over a pipe means encoding/decoding stuff, which > allocates memory, temporary buffers, and can potentially run Lisp. > It's IMO unwise to do that in a crashed session. Did you read my proposal? I suggested reading a *single byte*. POSIX guarantees we can do that, even from async-signal-unsafe context. The byte tells us whether to save, crash, die, or attempt to recover. man 7 signal But never mind. This whole ask-the-user-what-to-do thing is too confusing. Just imagine I'd said we'd always write the save file. --rL85dSWaUVRtK3asqkjawwL5fqPdaUjCw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJWipNAAAoJEN4WImmbpWBlG90QAJ4FZJUzkAsGpT+b5WONGSFt 3XLdHhTeaGyED9swGx2x6T5V6tjDOm/5WxTK2ZF6wpJyHOInvQRW8hgawjS3uHC5 e8vIc/4Wpe/7PawNG++oGxa/+H/bQ7hKQPUCs247iHsHchVTZ9zZtv/El0jItFD2 HD5CSZuGwvefzkSsB428qMS29WzAyX6Dd9IZF00eUfOSc3JObDb/+Zy66HX2liXq M3GrE8bAHZxp8AVz5UNlpRya2D4m6pDgz5XkEZ/sqG5Jg8u0C6Uc/Hm6Zise+0uh 47MUOkCXG14e8/qWqp3XzjdH9e0BWlT2i5HCE3uyKCyShWwymVkEWiBZQJy4nAJw rjFt5lY3f+T80tpepcJnGQKyjW/ywSz+wCq70UGXbSOVGOhWzfAl9dvjvAwDkJND 6U0FBkj1FM+3vjv8nydoiBKzaNZq641amGlN4GAovGFR4WxUBDaPTGAa+ZcgPZAi D3rWMIQ6E0bxsDabZ4Vnjo1hHpq3Ris5by+KcHx52bagfueClQaX5egX2NMtsn+Q jkApa87FtmGKwFI9Er2xINGJFY1ZjV/hLTBBUz/4b7/K7b5PsIgEhTcT5fHWs+Sc aol8q3wSn4az4y54PPu+ldUu+kCC0OifjGNCXFM8f91wBlETyNllP/KkFJRChdLu N5o/mDmWkWJnu0jWfi5U =jZkJ -----END PGP SIGNATURE----- --rL85dSWaUVRtK3asqkjawwL5fqPdaUjCw--