From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Missing sentinel events Date: Sun, 22 Jan 2017 18:13:31 +0100 Message-ID: <87y3y3kog4.fsf@gnus.org> References: <8737gbm36z.fsf@gnus.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485105233 9470 195.159.176.226 (22 Jan 2017 17:13:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2017 17:13:53 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 22 18:13:48 2017 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 1cVLi7-00023P-Ck for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 18:13:47 +0100 Original-Received: from localhost ([::1]:37141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVLiC-0006Ah-IM for ged-emacs-devel@m.gmane.org; Sun, 22 Jan 2017 12:13:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVLi6-0006AP-7m for emacs-devel@gnu.org; Sun, 22 Jan 2017 12:13:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVLi2-0006Vu-4b for emacs-devel@gnu.org; Sun, 22 Jan 2017 12:13:46 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:50516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVLi1-0006Vg-Tt for emacs-devel@gnu.org; Sun, 22 Jan 2017 12:13:42 -0500 Original-Received: from 2.150.49.21.tmi.telenormobil.no ([2.150.49.21] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cVLhx-0000ex-LH for emacs-devel@gnu.org; Sun, 22 Jan 2017 18:13:39 +0100 In-Reply-To: <8737gbm36z.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 22 Jan 2017 18:09:40 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.224.195 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:211538 Archived-At: Hm... There's a mechanism to send out all process statuses to sentinels? /* Get the text to use for the message. */ if (p->raw_status_new) update_status (p); msg = status_message (p); [...] /* The actions above may have further incremented p->tick. So set p->update_tick again so that an error in the sentinel will not cause this code to be run again. */ p->update_tick = p->tick; /* Now output the message suitably. */ exec_sentinel (proc, msg); So... the code in question should really just be doing p->tick = ++process_tick; ? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no