* src/process.c (handle_child_signal): Handle systems without WCONTINUED
authorGlenn Morris <rgm@gnu.org>
Tue, 29 Apr 2014 15:12:36 +0000 (08:12 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 29 Apr 2014 15:12:36 +0000 (08:12 -0700)
Fixes: debbugs:15110

src/ChangeLog
src/process.c

index 0c8fa7b..af9270f 100644 (file)
@@ -1,8 +1,12 @@
+2014-04-29  Glenn Morris  <rgm@gnu.org>
+
+       * process.c (handle_child_signal):
+       Handle systems without WCONTINUED.  (Bug#15110, 17339)
+
 2014-04-23  Eli Zaretskii  <eliz@gnu.org>
 
        * search.c (Fnewline_cache_check): Don't try to count newlines
-       outside the buffer's restriction, as find_newline doesn't support
-       that.
+       outside the buffer's restriction, as find_newline doesn't support that.
 
 2014-04-22  Paul Eggert  <eggert@cs.ucla.edu>
 
index 2c66b9e..07b690e 100644 (file)
@@ -6225,7 +6225,11 @@ handle_child_signal (int sig)
       int status;
 
       if (p->alive
-         && child_status_changed (p->pid, &status, WUNTRACED | WCONTINUED))
+#ifndef WCONTINUED
+          && child_status_changed (p->pid, &status, WUNTRACED))
+#else
+          && child_status_changed (p->pid, &status, WUNTRACED | WCONTINUED))
+#endif
        {
          /* Change the status of the process that was found.  */
          p->tick = ++process_tick;