From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Monsanto Newsgroups: gmane.emacs.devel Subject: Re: replacing process sentinels and filters with hooks Date: Mon, 1 Oct 2012 11:20:32 -0400 Message-ID: References: <5069ABC7.1040607@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1349104888 27908 80.91.229.3 (1 Oct 2012 15:21:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Oct 2012 15:21:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 01 17:21:34 2012 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 1TIhoJ-0002XI-Sy for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 17:21:32 +0200 Original-Received: from localhost ([::1]:36043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIhoE-0008Uw-81 for ged-emacs-devel@m.gmane.org; Mon, 01 Oct 2012 11:21:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIho6-0008UH-PB for emacs-devel@gnu.org; Mon, 01 Oct 2012 11:21:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIho2-0007br-HM for emacs-devel@gnu.org; Mon, 01 Oct 2012 11:21:18 -0400 Original-Received: from mail-wi0-f177.google.com ([209.85.212.177]:41236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIho2-0007bj-Aq for emacs-devel@gnu.org; Mon, 01 Oct 2012 11:21:14 -0400 Original-Received: by wibhj13 with SMTP id hj13so2242688wib.12 for ; Mon, 01 Oct 2012 08:21:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=6q48szZeSlDJMPzarTnCpTAl04RJ+VVpMmzjqYLUIB8=; b=lviw7FeLAH6HHPysrnw++fhjJRk+JhjbugUx77xVDpCkuBeZctw5OaR9fX4oA7ltnX gbXZqTqe865P3bvm7wr5vknjlKOv7H6ZwTApmtn+Kd3S7TFLNs4bQZHd+LuGG+kPRsow 69Pe95+luuggi9yb2yhohIJBvq74Kbo6XoM2oSUpyItbLRFJ7tUHTTXPOY+Uf0Z+fUNp ffTnXvbeFgIHMvdPTB5K1frTnftWGgLmXl3Ct116XQtr0i771VVEwEe+eGvoDqqQQIF9 0EvDk9pNulIYZbDD53IEiBr3+weQnk9OQBPBg3Upkig7hIEKVRl8crjBramFwwOyCNg/ kyuw== Original-Received: by 10.180.93.33 with SMTP id cr1mr15415602wib.8.1349104873575; Mon, 01 Oct 2012 08:21:13 -0700 (PDT) Original-Received: by 10.223.96.15 with HTTP; Mon, 1 Oct 2012 08:20:32 -0700 (PDT) In-Reply-To: <5069ABC7.1040607@cs.ucla.edu> X-Gm-Message-State: ALoCoQky+gMOao1gafP41xft4NxLZXH17pb/0C723QqlBgVo+OhgMeNvnY/VrF2atOaxLTxQQRdv X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.177 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:153841 Archived-At: I don't have a good answer for that, as I have no idea (yet) how the existing sentinel interface handles the signals. My plan was to just translate the old sentinel messages as follows: "finished\n" --> (exit 0) "exited abnormally with code exitcode\n" --> (exit nonzero-exitcode) "name-of-signal\n" --> (signal code-for-name-of-signal nil) "name-of-signal (core dumped)\n" -> (signal code-for-name-of-signal t) Christopher Monsanto chris@monsan.to -- http://monsan.to/