From 0ad61fe7d7c6f00679cbfafedc3e294a88c80fdb Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 26 Oct 1996 16:01:03 +0000 Subject: [PATCH] (status_notify): Update p->tick again just before running the sentinel, in case it dies. --- src/process.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5