all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: Missing sentinel events
Date: Sun, 22 Jan 2017 18:13:31 +0100	[thread overview]
Message-ID: <87y3y3kog4.fsf@gnus.org> (raw)
In-Reply-To: <8737gbm36z.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 22 Jan 2017 18:09:40 +0100")

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




  reply	other threads:[~2017-01-22 17:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-22 17:09 Missing sentinel events Lars Ingebrigtsen
2017-01-22 17:13 ` Lars Ingebrigtsen [this message]
2017-01-22 17:16 ` Lars Ingebrigtsen
2017-01-22 17:52   ` Stefan Monnier
2017-01-22 18:08     ` Eli Zaretskii
2017-01-22 18:22       ` Lars Ingebrigtsen
2017-01-22 18:42         ` Eli Zaretskii
2017-01-22 17:42 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y3y3kog4.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.