From da9aff1154d9bf612067f1f0cb05fb0ad865d3ce Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 31 May 2013 17:54:34 -0700 Subject: [PATCH] * process.c (handle_child_signal): Also use WCONTINUED. This is so that list-processes doesn't mistakenly list the process as stopped, when the process has actually been continued and is now running. --- src/ChangeLog | 7 +++++++ src/process.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 5069811f12b..a2d4a21e973 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2013-06-01 Paul Eggert + + * process.c (handle_child_signal): Also use WCONTINUED. + This is so that list-processes doesn't mistakenly list the process + as stopped, when the process has actually been continued and is + now running. + 2013-05-31 Paul Eggert Don't let D-bus autolaunch mess up SIGCHLD handling (Bug#14474). diff --git a/src/process.c b/src/process.c index 46385fa096b..45e8afdd22c 100644 --- a/src/process.c +++ b/src/process.c @@ -6159,7 +6159,8 @@ handle_child_signal (int sig) struct Lisp_Process *p = XPROCESS (proc); int status; - if (p->alive && child_status_changed (p->pid, &status, WUNTRACED)) + if (p->alive + && child_status_changed (p->pid, &status, WUNTRACED | WCONTINUED)) { /* Change the status of the process that was found. */ p->tick = ++process_tick; -- 2.39.2