From: Richard M. Stallman Date: Sat, 26 Oct 1996 16:01:03 +0000 (+0000) Subject: (status_notify): Update p->tick again X-Git-Tag: emacs-20.1~3480 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0ad61fe7d7c6f00679cbfafedc3e294a88c80fdb;p=emacs.git (status_notify): Update p->tick again just before running the sentinel, in case it dies. --- diff --git a/src/process.c b/src/process.c index 8880b8c9ca4..296f8606ea4 100644 --- a/src/process.c +++ b/src/process.c @@ -3614,6 +3614,11 @@ status_notify () deactivate_process (proc); } + /* 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. */ + XSETINT (p->update_tick, XINT (p->tick)); /* Now output the message suitably. */ if (!NILP (p->sentinel)) exec_sentinel (proc, msg);