use symmetric #ifdef checks for same-feature (Debian #763842)
This commit is contained in:
6
jobs.c
6
jobs.c
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.104 2014/06/10 22:17:09 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/jobs.c,v 1.105 2014/10/03 12:32:48 tg Exp $");
|
||||||
|
|
||||||
#if HAVE_KILLPG
|
#if HAVE_KILLPG
|
||||||
#define mksh_killpg killpg
|
#define mksh_killpg killpg
|
||||||
@@ -1339,7 +1339,7 @@ j_sigchld(int sig MKSH_A_UNUSED)
|
|||||||
do {
|
do {
|
||||||
#ifndef MKSH_NOPROSPECTOFWORK
|
#ifndef MKSH_NOPROSPECTOFWORK
|
||||||
pid = waitpid(-1, &status, (WNOHANG |
|
pid = waitpid(-1, &status, (WNOHANG |
|
||||||
#ifdef WCONTINUED
|
#if defined(WCONTINUED) && defined(WIFCONTINUED)
|
||||||
WCONTINUED |
|
WCONTINUED |
|
||||||
#endif
|
#endif
|
||||||
WUNTRACED));
|
WUNTRACED));
|
||||||
@@ -1381,7 +1381,7 @@ j_sigchld(int sig MKSH_A_UNUSED)
|
|||||||
if (WIFSTOPPED(status))
|
if (WIFSTOPPED(status))
|
||||||
p->state = PSTOPPED;
|
p->state = PSTOPPED;
|
||||||
else
|
else
|
||||||
#ifdef WIFCONTINUED
|
#if defined(WCONTINUED) && defined(WIFCONTINUED)
|
||||||
if (WIFCONTINUED(status)) {
|
if (WIFCONTINUED(status)) {
|
||||||
p->state = j->state = PRUNNING;
|
p->state = j->state = PRUNNING;
|
||||||
/* skip check_job(), no-op in this case */
|
/* skip check_job(), no-op in this case */
|
||||||
|
Reference in New Issue
Block a user