Displaying 1 result from an estimated 1 matches for "mksh_noprospectofwork".
2014 Oct 03
0
Fwd: mksh-static segfaults on continued jobs
...when compiling with klibc, WCONTINUED flag is defined but
WIFCONTINUED macro is not.  The result is that p->state and p->status
are not consistent.
This fixes it for me:
--- jobs.c  10 Jun 2014 22:17:33 -0000  1.104
+++ jobs.c  3 Oct 2014 04:33:32 -0000
@@ -1339,7 +1339,7 @@
  do {
 #ifndef MKSH_NOPROSPECTOFWORK
    pid = waitpid(-1, &status, (WNOHANG |
-#ifdef WCONTINUED
+#if defined(WCONTINUED) && defined(WIFCONTINUED)
        WCONTINUED |
 #endif
        WUNTRACED));
-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (700, 'u...